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

When OPA container restarted kube-mgmt is not re-syncing the policies #207

Closed
saranyareddy24 opened this issue May 22, 2023 · 2 comments
Closed

Comments

@saranyareddy24
Copy link
Contributor

Hi,

As part of our resiliency testing to test liveness and readiness probe for OPA container, we intentionally made the OPA container down which resulted in the restart of OPA container. When the OPA container came back there was an error seen in OPA container logs
"error": { "code": "undefined_document", "message": "document missing: data.system.main" },
This is because kube-mgmt didn't reload the policies to OPA as it couldn't identify that OPA container restarted.
As a result of this we are seeing below error in other application logs
failed calling webhook "[mutating-webhook.openpolicyagent.org](http://mutating-webhook.openpolicyagent.org/)"

kube-mgmt should be able to identify the restarts of OPA container and reload the policies to avoid hitting this issue.

@saranyareddy24
Copy link
Contributor Author

Can anyone please look into this issue.

@eshepelyuk
Copy link
Contributor

Duplicare of #189

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

2 participants