[jboss-jira] [JBoss JIRA] (WFWIP-310) Insufficient validation for WildFlyServer without applicationImage and applicationSource
Jeff Mesnil (Jira)
issues at jboss.org
Tue Apr 7 04:04:01 EDT 2020
[ https://issues.redhat.com/browse/WFWIP-310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14024479#comment-14024479 ]
Jeff Mesnil commented on WFWIP-310:
-----------------------------------
I've created upstream https://github.com/wildfly/wildfly-operator/issues/142 to fix this.
For now, the only information about such an invalid CRD is a log in the operator pod (from https://github.com/wildfly/wildfly-operator/blob/217ebbcedec08040417c2803247b0ead5296f963/pkg/controller/wildflyserver/wildflyserver_controller.go#L237-L241)
> 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}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list