-
Notifications
You must be signed in to change notification settings - Fork 106
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
Fail when "error(s) occurred while compiling module(s)" #267
Comments
there is no way to fail kube-mgmt container, whatever you mean with fail. |
The behavior we observe is that when the invalid_parameter error occurs, the .rego defined is not enforced. Thus defeating the purpose of having OPA. kube-mgmt container should restart or error. This is a better signal than just logging this error. |
if So, what is the purpose of restart ? |
It will signal to the operator something is wrong immediately. Think of it from a user perspective:
This is what happened in our case. |
|
If there are multiple OPA pods, does |
kube mgmt doesn't support scaling opa pods |
We deploy multiple replica OPA pods with opa and kube-mgmt container 1:1. I was not aware this is unsupported. Not supporting multiple replicas seems like a huge gap for something that's supposed to be kubernetes native? It seems almost impossible to me that there are production use cases with a single OPA pod. |
This is OSS |
Running OPA 0.54.0 and kube-mgmt v8.3.0
We frequently see errors like these from kube-mgmt
It is a problem from our .rego that we will address.
But the issue is that kube-mgmt container continues on even with the error. The rules we've defined are not enforced on this OPA pod.
Is there a way to fail the container when this error occurs?
The text was updated successfully, but these errors were encountered: