We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
What steps did you take and what happened: [A clear and concise description of what the bug is.]
I apply the following yaml file
apiVersion: mutations.gatekeeper.sh/v1alpha1 kind: AssignMetadata metadata: name: na-assign-label-podsecurity spec: match: scope: Cluster kinds: - apiGroups: ["*"] kinds: ["Namespace"] location: 'metadata.labels.pod-security."kubernetes.io/enforce"' parameters: assign: value: "restricted"
I will get this error:
invalid location for assignmetadata na-assign-label-podsecurity: metadata.labels.pod-security."kubernetes.io/enforce"
What did you expect to happen:
No Errors
Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.]
N/A
Environment:
kubectl version
The text was updated successfully, but these errors were encountered:
Can you try
‘metadata.labels.”pod-security.kubernetes.io/enforce"'
Sorry, something went wrong.
Thanks @ritazh that did the trick, now it works
Glad it worked for you!
just stumbled on this problem, I was looking for the format, it might be good to update the DOC with this example maybe ?
https://open-policy-agent.github.io/gatekeeper/website/docs/mutation/
No branches or pull requests
What steps did you take and what happened:
[A clear and concise description of what the bug is.]
I apply the following yaml file
I will get this error:
What did you expect to happen:
No Errors
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
N/A
Environment:
kubectl version
): 1.26.6The text was updated successfully, but these errors were encountered: