Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
helm: Move some securityContext fields to container's securityContext
The `privileged` and `readOnlyRootFilesystem` fields are not valid in the pod's security context and can only be used in the container's security context. Trying to apply the generated resource would cause the error: ``` error validating data: [ValidationError(Deployment.spec.template.spec.securityContext): unknown field "privileged" in io.k8s.api.core.v1.PodSecurityContext, ValidationError(Deployment.spec.template.spec.securityContext): unknown field "readOnlyRootFilesystem" in io.k8s.api.core.v1.PodSecurityContext]; if you choose to ignore these errors, turn validation off with --validate=false ```
- Loading branch information