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: #248, #250, #251, #249, #254 #875

Merged
merged 8 commits into from
May 28, 2024

Conversation

mprahl and others added 8 commits May 28, 2024 13:58
Signed-off-by: mprahl <mprahl@users.noreply.github.com>
(cherry picked from commit 8a93c02)
This provides more context as to why it may be unsafe to enable it.

Signed-off-by: mprahl <mprahl@users.noreply.github.com>
(cherry picked from commit 6771aef)
Signed-off-by: mprahl <mprahl@users.noreply.github.com>
(cherry picked from commit 8f2947e)
Signed-off-by: mprahl <mprahl@users.noreply.github.com>
(cherry picked from commit 65d1a80)
Signed-off-by: mprahl <mprahl@users.noreply.github.com>
(cherry picked from commit 42358ff)
This ensures the OperatorPolicy is deleted before the operator is
deleted. Hopefully this will address some of the test flakes.

Signed-off-by: mprahl <mprahl@users.noreply.github.com>
(cherry picked from commit 23216e2)
Breaking change: setting `InstallPlanApproval` on the subscription is
invalid, and will result in a noncompliant policy that does not perform
any other actions. Previously, *not* setting that field was invalid.

Being able to set `InstallPlanApproval` in the policy was somewhat
confusing, because the controller would override the supplied value in
many cases, in order to have control over which upgrades would be
approved. Additionally, there was a desire to separate the approval for
the initial installation from the approval for later upgrades.

The new field addresses these concerns. Initial installs will be
approved whenever the policy is enforced (as long as it matches the
policy's specified allowed versions), and upgrades will only be approved
when `upgradeApproval` is set to Automatic.

Refs:
 - https://issues.redhat.com/browse/ACM-11268

Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>
(cherry picked from commit 5b60de6)
Signed-off-by: GitHub <noreply@github.com>
(cherry picked from commit 622c8e4)
Copy link

openshift-ci bot commented May 28, 2024

@magic-mirror-bot[bot]: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/images 0128e28 link true /test images

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@mprahl
Copy link
Contributor

mprahl commented May 28, 2024

/retest

Copy link

openshift-ci bot commented May 28, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: magic-mirror-bot[bot], mprahl

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

The pull request process is described 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

@mprahl
Copy link
Contributor

mprahl commented May 28, 2024

Forcing a merge to workaround the image not building correctly.

@mprahl mprahl merged commit 1f42bb7 into main May 28, 2024
2 of 12 checks passed
@mprahl mprahl deleted the magic-mirror-main-1716904686808 branch May 28, 2024 14:47
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.

😿 Failed to sync the upstream PRs: #248, #250, #251, #249, #254
3 participants