Gatekeeper condition #627
Unanswered
zhan9san
asked this question in
Gatekeeper
Replies: 1 comment 3 replies
-
You can use the path ( If there is already a container named |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to use gatekeeper to update the pod with specific condition. But I don't find any document to guide me how to do it. I am not sure whether it is supported.
The condition is that only if there is only one container whose name is jnlp in pod, then modify the template. If the condition does not match, do nothing, and do not touch anything in the pod.
The original request can be found here, https://github.com/zhan9san/init-jnlp/tree/main/gatekeeper
e.g.
Need to mutate
Do not need to mutate because there are 2 containers in a pod
Do not need to mutate because the only container name in the pod is not jnlp.
Here is the manifest
https://open-policy-agent.github.io/gatekeeper/website/docs/mutation/#adding-a-network-sidecar-to-a-pod
Beta Was this translation helpful? Give feedback.
All reactions