Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-11024

If specified, a startingCSV value should be considered an allowed version for the operator

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • ACM 2.11.0
    • None
    • GRC
    • None
    • GRC Sprint 2024-08
    • Low
    • No

       Currently, a policy like this will result in a subscription being created, but no InstallPlans being approved:

       

      apiVersion: policy.open-cluster-management.io/v1beta1
      kind: OperatorPolicy
      metadata:
        name: quay-operator
        namespace: local-cluster
      spec:
        complianceType: musthave
        remediationAction: enforce
        severity: high
        subscription:
          channel: stable-3.10
          installPlanApproval: Automatic
          name: quay-operator
          namespace: openshift-operators
          source: redhat-operators
          sourceNamespace: openshift-marketplace
          startingCSV: quay-operator.v3.10.0
        versions:
          - quay-operator.v5.nonexist
      

      It is clear that the intention of the user was to initially install `quay-operator.v3.10.0`, but since that version was not explicitly included in the `versions` list, it did not approve the initial InstallPlan.

       

              rh-ee-jaszhang Jason Zhang (Inactive)
              jkulikau@redhat.com Justin Kulikauskas
              Derek Ho Derek Ho
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: