fix(argo-cd): global.securityContext merging (#1255)
* fix(argo-cd): global.securityContext merging merge global.securityContext into local (applicationset, notifications) values Signed-off-by: Höhl, Lukas <lukas.hoehl@accso.de> * chore(argo-cd): bump version and add artifacthub changes Signed-off-by: Höhl, Lukas <lukas.hoehl@accso.de> * fix(argo-cd): wrong value for applicationSet podSecurityContext Signed-off-by: Höhl, Lukas <lukas.hoehl@accso.de> * fix(argo-cd): rerun helm-docs Signed-off-by: Höhl, Lukas <lukas.hoehl@accso.de> * chore(argo-cd): bump version Signed-off-by: Höhl, Lukas <lukas.hoehl@accso.de> Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
This commit is contained in:
parent
021a5a0c1f
commit
ef70ad9edd
4 changed files with 5 additions and 9 deletions
|
|
@ -30,7 +30,7 @@ spec:
|
|||
{{- end }}
|
||||
serviceAccountName: {{ include "argo-cd.applicationSetServiceAccountName" . }}
|
||||
securityContext:
|
||||
{{- toYaml .Values.applicationSet.podSecurityContext | nindent 8 }}
|
||||
{{- toYaml (mergeOverwrite (deepCopy .Values.global.securityContext) .Values.applicationSet.podSecurityContext) | nindent 8 }}
|
||||
containers:
|
||||
- name: {{ .Values.applicationSet.name }}
|
||||
securityContext:
|
||||
|
|
|
|||
|
|
@ -21,9 +21,7 @@ spec:
|
|||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
serviceAccountName: {{ template "argo-cd.notificationsBotsSlackServiceAccountName" . }}
|
||||
{{- with .Values.notifications.bots.slack.securityContext }}
|
||||
securityContext: {{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
securityContext: {{- toYaml (mergeOverwrite (deepCopy .Values.global.securityContext) .Values.notifications.securityContext) | nindent 8 }}
|
||||
containers:
|
||||
- name: {{ template "argo-cd.notifications.fullname" . }}-bot
|
||||
image: {{ default .Values.global.image.repository .Values.notifications.bots.slack.image.repository }}:{{ default (include "argo-cd.defaultTag" .) .Values.notifications.bots.slack.image.tag }}
|
||||
|
|
|
|||
|
|
@ -32,9 +32,7 @@ spec:
|
|||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
serviceAccountName: {{ include "argo-cd.notificationsServiceAccountName" . }}
|
||||
{{- if .Values.notifications.securityContext }}
|
||||
securityContext: {{- toYaml .Values.notifications.securityContext | nindent 8 }}
|
||||
{{- end }}
|
||||
securityContext: {{- toYaml (mergeOverwrite (deepCopy .Values.global.securityContext) .Values.notifications.securityContext) | nindent 8 }}
|
||||
containers:
|
||||
- name: {{ .Values.notifications.name }}
|
||||
image: {{ default .Values.global.image.repository .Values.notifications.image.repository }}:{{ default (include "argo-cd.defaultTag" .) .Values.notifications.image.tag }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue