fix(argo-cd): Allow to disable containerSecurityContext (#2072)
* Allow to disable containerSecurityContext Add a `enabled` property to allow the whole containerSecurityContext to be disabled. Fixes https://github.com/argoproj/argo-helm/issues/2071 Signed-off-by: wim.fournier <github@fournier.nl> Signed-off-by: Wim Fournier <github@fournier.nl> * fix missing space Signed-off-by: Wim Fournier <github@fournier.nl> * remove enabled key Signed-off-by: Wim Fournier <github@fournier.nl> * fix typo Signed-off-by: Wim Fournier <github@fournier.nl> * missed one Signed-off-by: Wim Fournier <github@fournier.nl> * simplify using `with`, thx @pborn-ionos! Signed-off-by: wim.fournier <wim.fournier@adevinta.com> * missed one Signed-off-by: wim.fournier <wim.fournier@adevinta.com> --------- Signed-off-by: wim.fournier <github@fournier.nl> Signed-off-by: Wim Fournier <github@fournier.nl> Signed-off-by: wim.fournier <wim.fournier@adevinta.com> Co-authored-by: wim.fournier <wim.fournier@adevinta.com>
This commit is contained in:
parent
feb7fc0bb8
commit
cd4c291e47
8 changed files with 32 additions and 12 deletions
|
|
@ -75,8 +75,10 @@ spec:
|
|||
protocol: TCP
|
||||
resources:
|
||||
{{- toYaml .Values.redis.resources | nindent 10 }}
|
||||
{{- with .Values.redis.containerSecurityContext }}
|
||||
securityContext:
|
||||
{{- toYaml .Values.redis.containerSecurityContext | nindent 10 }}
|
||||
{{- toYaml . | nindent 10 }}
|
||||
{{- end }}
|
||||
{{- with .Values.redis.volumeMounts }}
|
||||
volumeMounts:
|
||||
{{- toYaml . | nindent 10 }}
|
||||
|
|
@ -99,8 +101,10 @@ spec:
|
|||
protocol: TCP
|
||||
resources:
|
||||
{{- toYaml .Values.redis.exporter.resources | nindent 10 }}
|
||||
{{- with .Values.redis.exporter.containerSecurityContext }}
|
||||
securityContext:
|
||||
{{- toYaml .Values.redis.exporter.containerSecurityContext | nindent 10 }}
|
||||
{{- toYaml . | nindent 10 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- with .Values.redis.extraContainers }}
|
||||
{{- tpl (toYaml .) $ | nindent 6 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue