fix review comments

Signed-off-by: David J. M. Karlsen <david@davidkarlsen.com>
This commit is contained in:
David J. M. Karlsen 2019-12-16 00:09:48 +01:00
parent 9ac72abd1a
commit 069ecf5cc3
No known key found for this signature in database
GPG key ID: F54982D216088EE1
5 changed files with 8 additions and 9 deletions

View file

@ -35,7 +35,7 @@ spec:
{{- toYaml .Values.controller.podLabels | nindent 8 }} {{- toYaml .Values.controller.podLabels | nindent 8 }}
{{- end }} {{- end }}
spec: spec:
{{- if .Values.global.securityContext.enabled }} {{- if .Values.global.securityContext }}
securityContext: {{- toYaml .Values.global.securityContext | nindent 8 }} securityContext: {{- toYaml .Values.global.securityContext | nindent 8 }}
{{- end }} {{- end }}
containers: containers:

View file

@ -35,7 +35,7 @@ spec:
{{- toYaml .Values.controller.podLabels | nindent 8 }} {{- toYaml .Values.controller.podLabels | nindent 8 }}
{{- end }} {{- end }}
spec: spec:
{{- if .Values.global.securityContext.enabled }} {{- if .Values.global.securityContext }}
securityContext: {{- toYaml .Values.global.securityContext | nindent 8 }} securityContext: {{- toYaml .Values.global.securityContext | nindent 8 }}
{{- end }} {{- end }}
containers: containers:

View file

@ -35,7 +35,7 @@ spec:
{{- toYaml .Values.controller.podLabels | nindent 8 }} {{- toYaml .Values.controller.podLabels | nindent 8 }}
{{- end }} {{- end }}
spec: spec:
{{- if .Values.global.securityContext.enabled }} {{- if .Values.global.securityContext }}
securityContext: {{- toYaml .Values.global.securityContext | nindent 8 }} securityContext: {{- toYaml .Values.global.securityContext | nindent 8 }}
{{- end }} {{- end }}
containers: containers:

View file

@ -25,7 +25,7 @@ spec:
app.kubernetes.io/component: {{ .Values.redis.name }} app.kubernetes.io/component: {{ .Values.redis.name }}
spec: spec:
automountServiceAccountToken: false automountServiceAccountToken: false
{{- if .Values.global.securityContext.enabled }} {{- if .Values.global.securityContext }}
securityContext: {{- toYaml .Values.global.securityContext | nindent 8 }} securityContext: {{- toYaml .Values.global.securityContext | nindent 8 }}
{{- end }} {{- end }}
containers: containers:

View file

@ -12,11 +12,10 @@ global:
repository: argoproj/argocd repository: argoproj/argocd
tag: v1.3.4 tag: v1.3.4
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
securityContext: securityContext: {}
enabled: true # runAsUser: 999
runAsUser: 999 # runAsGroup: 999
runAsGroup: 999 # fsGroup: 999
fsGroup: 999
## Controller ## Controller
controller: controller: