unset is mutating the .Values object during rendering. This makes rendering order-dependent and non-idempotent. (this is bad practice in general, as a parent chart might consider the securityContext value after .enabled is unset and make a wrong decision.)
|
{{- $securityContext := unset .Values.initContainers.waitForRedis.securityContext "enabled" }} |
and
|
{{- $securityContext := unset .Values.securityContext "enabled" }} |
Looks like this was introduced in #67
Suggestion, apply unset to a clone of the securityContext object, e.g.,
{{- $securityContext := unset ( .Values.securityContext | deepCopy ) "enabled" }}
unsetis mutating the .Values object during rendering. This makes rendering order-dependent and non-idempotent. (this is bad practice in general, as a parent chart might consider the securityContext value after.enabledis unset and make a wrong decision.)manifests/helm/oauth2-proxy/templates/deployment.yaml
Line 102 in fe328b0
and
manifests/helm/oauth2-proxy/templates/deployment.yaml
Line 336 in fe328b0
Looks like this was introduced in #67
Suggestion, apply
unsetto a clone of the securityContext object, e.g.,{{- $securityContext := unset ( .Values.securityContext | deepCopy ) "enabled" }}