Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🤖 Sync from open-cluster-management-io/config-policy-controller: #244, #245 #859

Merged
merged 2 commits into from
May 9, 2024

Commits on May 9, 2024

  1. Prevent subscription creation if opgroup incorrect

    Previously, the subscription would be created by an enforced musthave
    OperatorPolicy regardless of the status of the OperatorGroup. But this
    could lead to a bad result where the operator is running in the wrong
    mode because it is not using the correct operatorgroup. While the policy
    was correctly non-compliant in this case, it should not create the
    subscription.
    
    Refs:
     - https://issues.redhat.com/browse/ACM-11507
    
    Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>
    (cherry picked from commit 414cd18)
    JustinKuli authored and Magic Mirror committed May 9, 2024
    Configuration menu
    Copy the full SHA
    6923222 View commit details
    Browse the repository at this point in the history
  2. Report compliant when NS missing in mustnothave

    Previously, when the namespace specified for the operator in an
    OperatorPolicy was not found, the policy would always be noncompliant.
    But in mustnothave mode, it should be compliant (assuming everything
    else is right).
    
    Refs:
     - https://issues.redhat.com/browse/ACM-11549
    
    Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>
    (cherry picked from commit 3db2760)
    JustinKuli authored and Magic Mirror committed May 9, 2024
    Configuration menu
    Copy the full SHA
    9a4787e View commit details
    Browse the repository at this point in the history