Merge "Helm-toolkit: Fix hasKey call for security context snippet"
This commit is contained in:
commit
ef0f26988f
@ -40,7 +40,7 @@ return: |
|
||||
{{- $application := index . "application" -}}
|
||||
securityContext:
|
||||
runAsUser: {{ index $envAll.Values.pod.user $application "uid" }}
|
||||
{{- if hasKey $envAll.Values.pod $application "security_context" }}
|
||||
{{- if hasKey (index $envAll.Values.pod $application) "security_context" }}
|
||||
{{ toYaml (index $envAll.Values.pod $application "security_context") | indent 2 }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
|
Loading…
Reference in New Issue
Block a user