Uploaded image for project: 'WildFly WIP'
  1. WildFly WIP
  2. WFWIP-310

Insufficient validation for WildFlyServer without applicationImage and applicationSource

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • OpenShift
    • None

      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

      # 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
      

              jmesnil1@redhat.com Jeff Mesnil
              jbliznak@redhat.com Jan Blizňák
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: