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

Provide feedback if policy deployment goes to error status #6

Open
itowlson opened this issue Dec 2, 2019 · 1 comment
Open

Provide feedback if policy deployment goes to error status #6

itowlson opened this issue Dec 2, 2019 · 1 comment
Assignees

Comments

@itowlson
Copy link
Contributor

itowlson commented Dec 2, 2019

When a policy is deployed as a config map, OPA sets the openpolicyagent.org/policy-status annotation on it to mark if it was okay or not. If we deploy a policy, and it fails, it would be good to report the error as part of deployment rather than requiring users to go check somewhere.

The difficulty would be knowing when OPA has updated the status. It would be fine on the initial creation - just wait for the presence of the annotation. But when someone updates a policy, is there a way to know when the new status has been set?

@itowlson
Copy link
Contributor Author

itowlson commented Dec 2, 2019

Ah... For updates I guess we could (and indeed should) remove the status annotation before performing the kubectl replace. In which case we need only wait for the annotation to appear, just as in the create case.

@itowlson itowlson self-assigned this Dec 2, 2019
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

No branches or pull requests

1 participant