-
Notifications
You must be signed in to change notification settings - Fork 21
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
Move the disabled events recording outside of spec-sync #132
Move the disabled events recording outside of spec-sync #132
Conversation
This is now handled in the governance-policy-framework-addon: open-cluster-management-io/governance-policy-framework-addon#132 Relates: https://issues.redhat.com/browse/ACM-10418 Signed-off-by: mprahl <mprahl@users.noreply.github.com>
5dffd33
to
e380d50
Compare
This is now handled in the governance-policy-framework-addon: open-cluster-management-io/governance-policy-framework-addon#132 Relates: https://issues.redhat.com/browse/ACM-10418 Signed-off-by: mprahl <mprahl@users.noreply.github.com>
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.
/hold LGTM! Holding for other reviews (or if merge coordination is needed).
@dhaiducek thanks for the review Dale! After thinking about this, I think I need to guarantee the watch starts from a point before the spec-sync starts in order to not miss and delete policy events. I'll address that in a bit. /hold |
There were issues with duplicated compliance events and having a different code path in the governance-policy-propagator for a self-managed hub. This will unifies the approaches. It takes the approach of using a retry watcher and just generating the disabled event when the policy is deleted. The controller-runtime library cannot be used because when there is a reconcile event for a deleted object, you don't have access to the object as it was right before deletion. Relates: https://issues.redhat.com/browse/ACM-10418 Signed-off-by: mprahl <mprahl@users.noreply.github.com>
e380d50
to
7dace50
Compare
/unhold |
[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 |
5dd1a53
into
open-cluster-management-io:main
This is now handled in the governance-policy-framework-addon: open-cluster-management-io/governance-policy-framework-addon#132 Relates: https://issues.redhat.com/browse/ACM-10418 Signed-off-by: mprahl <mprahl@users.noreply.github.com>
This is now handled in the governance-policy-framework-addon: open-cluster-management-io/governance-policy-framework-addon#132 Relates: https://issues.redhat.com/browse/ACM-10418 Signed-off-by: mprahl <mprahl@users.noreply.github.com> (cherry picked from commit 0a78fa3)
This is now handled in the governance-policy-framework-addon: open-cluster-management-io/governance-policy-framework-addon#132 Relates: https://issues.redhat.com/browse/ACM-10418 Signed-off-by: mprahl <mprahl@users.noreply.github.com> (cherry picked from commit 0a78fa3)
This is now handled in the governance-policy-framework-addon: open-cluster-management-io/governance-policy-framework-addon#132 Relates: https://issues.redhat.com/browse/ACM-10418 Signed-off-by: mprahl <mprahl@users.noreply.github.com> (cherry picked from commit 0a78fa3)
This is now handled in the governance-policy-framework-addon: open-cluster-management-io/governance-policy-framework-addon#132 Relates: https://issues.redhat.com/browse/ACM-10418 Signed-off-by: mprahl <mprahl@users.noreply.github.com> (cherry picked from commit 0a78fa3)
Note, this is the related PR in the propagator: open-cluster-management-io/governance-policy-propagator#215
There were issues with duplicated compliance events and having a different code path in the governance-policy-propagator for a self-managed hub. This will unifies the approaches.
It takes the approach of using a retry watcher and just generating the disabled event when the policy is deleted. The controller-runtime library cannot be used because when there is a reconcile event for a deleted object, you don't have access to the object as it was right before deletion.
Relates:
https://issues.redhat.com/browse/ACM-10418