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

OperatorPolicy does not report when the version installed should not be allowed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • ACM 2.11.0
    • ACM 2.11.0
    • GRC
    • None
    • GRC Sprint 2024-11, GRC Sprint 2024-12
    • Important
    • No

      Description of problem:

      OperatorPolicy does not report when the version installed should not be allowed

      Version-Release number of selected component (if applicable):

      How reproducible:

      Steps to Reproduce:

      1. Create an OperatorPolicy for some operator (I used quay-operator). Don't set any `versions`. Set it to enforce.
      2. The OperatorPolicy should install the operator successfully and become compliant
      3. Note the current version of the operator (in my case, quay-operator.v3.11.1).
      4. Edit the policy to set the `versions` list to anything that does not include that version. For example `["quay-operator.v3.14159"]`.
      5. Observe the policy status

      Actual results:

      The policy is compliant

      Expected results:

      The policy should have a violation, because the version running on the cluster is not a version I have specified as allowed in the policy.

      Additional info:

              jkulikau@redhat.com Justin Kulikauskas
              jkulikau@redhat.com Justin Kulikauskas
              Derek Ho Derek Ho
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: