Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix!: Don't set spec.PodSecurityContext if empty
We have: - the Pod's spec.securityContext for all the containers in the pods. - per container securityContext. This commit changes the behaviour, so in the case of the Pod not having a spec.securityContext, it doesn't create it. This means that if the containers are correctly configured for runAsUser and runAsGroup, the request will be accepted, instead of mutated. This means that when configured with mutating `false`, the requests will be accepted, and not incorrectly rejected because of unneeded mutation. Signed-off-by: Víctor Cuadrado Juan <[email protected]>
- Loading branch information