Skip to content

Commit

Permalink
root user compatibility defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegoodier committed Nov 3, 2023
1 parent 136b7c9 commit 99e4d5f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ spec:
{{- else if lt $nginxPort 1025 }}
securityContext:
runAsUser: 0
{{- else if .Values.global.securityContext }}
{{- else if .Values.global.securityContext }}
securityContext:
{{- toYaml .Values.global.securityContext | nindent 8 }}
{{- else }}
Expand Down Expand Up @@ -331,7 +331,7 @@ spec:
{{- end }}
securityContext:
runAsUser: 0
{{ end }}
{{ end }}
containers:
{{- if .Values.global.gmp.enabled }}
- name: {{ .Values.global.gmp.gmpProxy.name }}
Expand Down Expand Up @@ -1147,7 +1147,7 @@ spec:
{{- if .Values.kubecostFrontend.securityContext }}
securityContext:
{{- toYaml .Values.kubecostFrontend.securityContext | nindent 12 }}
{{- else if .Values.global.containerSecurityContext }}
{{- else if and .Values.global.containerSecurityContext (gt $nginxPort 1025) }}
securityContext:
{{- toYaml .Values.global.containerSecurityContext | nindent 12 }}
{{- end }}
Expand Down

0 comments on commit 99e4d5f

Please sign in to comment.