Moving to "admissionregistration.k8s.io/v1" causes OPA to not work #219
-
We are prepping to move from Kubernetes 1.21 to 1.22 and need to move our OPA Mutating Webhook over to We use OPA Mutating Webhook to add an annotation to new namespaces. With Working Webhook Configuration:
Not Working Webhook Configuration:
Here is the OPA deployment YAML
Let me know what else may be helpful. Currently we have rolled back to |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
What version of the admission review object does your policy respond with? I'm going to guess that this setting:
Is going to have the Kubernetes API both send and expect v1 versioned admission reviews only, so unless that's what you're sending back they'll likely be rejected. |
Beta Was this translation helpful? Give feedback.
What version of the admission review object does your policy respond with? I'm going to guess that this setting:
Is going to have the Kubernetes API both send and expect v1 versioned admission reviews only, so unless that's what you're sending back they'll likely be rejected.