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

[2.8] cherry-pick namespace selector evaluations #563

Conversation

JustinKuli
Copy link
Contributor

@openshift-ci
Copy link

openshift-ci bot commented Aug 17, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@JustinKuli
Copy link
Contributor Author

I expect some of the tests to fail, they assume that some other changes to messages went in which are currently queued in #546

@mprahl
Copy link
Contributor

mprahl commented Sep 1, 2023

@JustinKuli could you please rebase this PR?

Previously, these settings were not being applied to the config used
in 'hosted mode'. This commit also includes a typo fix, and adjusts some
settings used by the tests.

Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>
(cherry picked from commit 2078334)
(cherry picked from commit 8df375e)
Previously, the evaluation interval could prevent policies from being
applied on new namespaces when they appeared. Now, a new controller
watches namespaces on the target cluster, and can signal to the config
policy controller when a policy's selected namespaces have changed, so
that it can be re-evaluated.

A new controller-manager is used in hosted mode, in order to create a
cache for the namespaces on the target cluster. This change required
some setup adjustments in order to start both managers in this case.

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

Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>
(cherry picked from commit 7e64817)
(cherry picked from commit 8097c69)
@openshift-ci
Copy link

openshift-ci bot commented Sep 5, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JustinKuli, 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

@sonarcloud
Copy link

sonarcloud bot commented Sep 5, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

91.9% 91.9% Coverage
0.0% 0.0% Duplication

@JustinKuli JustinKuli marked this pull request as ready for review September 5, 2023 18:13
@openshift-merge-robot openshift-merge-robot merged commit c6c1eac into stolostron:release-2.8 Sep 5, 2023
10 checks passed
@JustinKuli JustinKuli deleted the cherry-2.8-ns-sel-eval branch September 5, 2023 18:37
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.

3 participants