Why ClusterPolicy Mutation Only Works For Pods Deployed In Default Namespace #10223
Replies: 2 comments 2 replies
-
As long as you are not testing in a Namespace which has been excluded during the course of installing Kyverno it should work. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I didn't exclude the namespace, I am using a completely new namespace I created. Or does the default helm installation have some selective namespace configuration? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I want to create a cluster policy that will inject an init-container to PODs with a particular labels, below is what I tried but it is only working for PODs that are created in the default namespace:
When I create a POD in another namespace that is not the Default namespace, the mutation does not happen.
Will appreciate if someone can point out what the issue could be with the policy statement.
I am using the default helm installation
Beta Was this translation helpful? Give feedback.
All reactions