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: #260 #896

Merged
merged 2 commits into from
Jun 7, 2024

Conversation

magic-mirror-bot[bot]
Copy link

mprahl added 2 commits June 7, 2024 20:01
The operatorpolicy.policy.open-cluster-management.io/managed label is
set to an empty value on the Subscription. The
operatorpolicy.policy.open-cluster-management.io/managed annotation
is set to <policy name>.<policy namespace>.

The label doesn't set a value because the value could be too long.

This will allow querying for subscriptions managed by operator policies.

Signed-off-by: mprahl <mprahl@users.noreply.github.com>
(cherry picked from commit 57e112c)
When an InstallPlan contains multiple CSVs, it will be approved if all
CSVs can be approved by the current operator policies.

Rather than query the operator policies directly, the subscriptions in
the namespace that are managed by an operator policy are queried and
then their associated operator policies are queried to avoid having to
resolve templates to see if they manage a subscription in the namespace.

Relates:
https://issues.redhat.com/browse/ACM-11981

Signed-off-by: mprahl <mprahl@users.noreply.github.com>
(cherry picked from commit 4f7cda6)
Copy link

openshift-ci bot commented Jun 7, 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 justinkuli 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

sonarqubecloud bot commented Jun 7, 2024

@magic-mirror-bot magic-mirror-bot bot merged commit 52ea853 into main Jun 7, 2024
12 of 13 checks passed
@magic-mirror-bot magic-mirror-bot bot deleted the magic-mirror-main-1717790480104 branch June 7, 2024 20:58
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