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

Conversation

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)
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)
Copy link

openshift-ci bot commented May 9, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: magic-mirror-bot[bot]
Once this PR has been reviewed and has the lgtm label, please assign mprahl for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link

sonarcloud bot commented May 9, 2024

@magic-mirror-bot magic-mirror-bot bot merged commit 9876b06 into main May 9, 2024
12 of 13 checks passed
@magic-mirror-bot magic-mirror-bot bot deleted the magic-mirror-main-1715289875069 branch May 9, 2024 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant