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

ocm: add WaitForAllPoliciesComplianceState function #906

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

klaskosk
Copy link
Collaborator

Although there is already a way to wait for an individual policy to reach a certain compliance state, there is no way to wait for all policies to reach a compliance state. This PR addresses this gap by adding the WaitForAllPoliciesComplianceState function.

In the context of a spoke cluster, this function can be used directly to wait for policies to all go compliant. For a hub cluster, one may provide ListOptions to specify a label or namespace to wait on the policies of a given ManagedCluster.

Although there is already a way to wait for an individual policy to reach a certain compliance state, there is no way to wait for all policies to reach a compliance state. This PR addresses this gap by adding the WaitForAllPoliciesComplianceState function.

In the context of a spoke cluster, this function can be used directly to wait for policies to all go compliant. For a hub cluster, one may provide ListOptions to specify a label or namespace to wait on the policies of a given ManagedCluster.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant