Admission webhook pod update

102 views Asked by At

Is it possible to mutate environment variables in kubernetes pod with admission control webhook that is triggered by UPDATE operation?

Is there way to see how patch from mutate webhook is applied?

The thing is I am able to update metadata but my environment variables are not updated. When I apply it on CREATE operation it works just fine.

1

There are 1 answers

0
hybaken On BEST ANSWER

It is not possible to mutate environment variables with admission control on UPDATE operation.

Source: https://kubernetes.io/docs/concepts/workloads/pods/#pod-update-and-replacement