]
Jan Blizňák closed WFWIP-310.
-----------------------------
Resolution: Out of Date
[~jmesnil] FYI I guess we can now close this as EAP7-1337 turned out to take another
approach. I am closing this as Out of Date.
Insufficient validation for WildFlyServer without applicationImage
and applicationSource
----------------------------------------------------------------------------------------
Key: WFWIP-310
URL:
https://issues.redhat.com/browse/WFWIP-310
Project: WildFly WIP
Issue Type: Bug
Components: OpenShift
Reporter: Jan Blizňák
Assignee: Jeff Mesnil
Priority: Major
Operator phase 2 EAP7-1337 extends WildFlyServer CRD with applicationSource spec.
According to analysis, one of these _must_ be specifed:
* applicationImage
* applicationSource
However, creating CR without any of these passes, without any validation error or log for
end user, but such operator is then useless.
I am using wildfly-operator image build from latest
https://github.com/wildfly/wildfly-operator/pull/132
{code:java}
# given you have WildFlyServer CRD already installed on cluster
cat > demo.yaml << EOF
apiVersion:
wildfly.org/v1alpha1
kind: WildFlyServer
metadata:
name: demo-should-fail
spec:
replicas: 1
EOF
oc create -f demo.yaml
{code}