-
Notifications
You must be signed in to change notification settings - Fork 296
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
Fix: PSS label reset issue #821
Fix: PSS label reset issue #821
Conversation
Signed-off-by: Varsha B <[email protected]>
Skipping CI for Draft Pull Request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @varshab1210. I have left a suggestion in watch logic. PTAL. It would also be great to have some unit tests for this. Maybe a test to verify that labels are added to the namespace and correctly reconciled when modified. You can use below tests for reference.
func TestReconcile_GitOpsNamespace(t *testing.T) { - Fix: Ensure ConfigMap and StatefulSet updates are applied during operator upgrades argoproj-labs/argocd-operator#1619
Signed-off-by: Varsha B <[email protected]>
afef117
to
b000341
Compare
/retest |
1 similar comment
/retest |
/test v4.12-kuttl-parallel |
Watches( | ||
&corev1.Namespace{}, | ||
&handler.EnqueueRequestForObject{}, | ||
builder.WithPredicates(predicate.NewPredicateFuncs(func(obj client.Object) bool { | ||
return obj.GetName() == "openshift-gitops" | ||
})), | ||
). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note to self: Use selectors at cache level to optimize memory consumption.
/lgtm |
Signed-off-by: Varsha B <[email protected]>
341bec4
to
c269db4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
/retest |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: iam-veeramalla, svghadi 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 |
/retest |
/test v4.17-e2e |
/retest |
1 similar comment
/retest |
f652316
into
redhat-developer:master
What type of PR is this?
/kind bug
What does this PR do / why we need it:
Previously, PSS labels in openshift-gitops ns did not get reconciled and reset upon modification to the values. This PR fixes the issue
Have you updated the necessary documentation?
Which issue(s) this PR fixes:
https://issues.redhat.com/browse/GITOPS-5945
Fixes #?
Test acceptance criteria:
How to test changes / Special notes to the reviewer: