Handle additional initContainers correctly in the dex deployment (#1442)

Signed-off-by: bakito <github@bakito.ch>
main argo-cd-5.4.3
Marc Brugger 2022-09-08 18:59:42 +02:00 committed by GitHub
parent db0957d3cb
commit a6a2d1b1db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 6 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v2
appVersion: v2.4.11
description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes.
name: argo-cd
version: 5.4.2
version: 5.4.3
home: https://github.com/argoproj/argo-helm
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
keywords:
@ -19,4 +19,4 @@ dependencies:
condition: redis-ha.enabled
annotations:
artifacthub.io/changes: |
- "[Added]: Add priorityClassName to notifications controller"
- "[Fixed]: Additional initContainers are handled correctly in the dex deployment"

View File

@ -47,6 +47,9 @@ spec:
volumeMounts:
- mountPath: /shared
name: static-files
{{- if .Values.dex.initContainers }}
{{- toYaml .Values.dex.initContainers | nindent 6 }}
{{- end }}
containers:
- name: {{ .Values.dex.name }}
image: {{ .Values.dex.image.repository }}:{{ .Values.dex.image.tag }}
@ -146,10 +149,6 @@ spec:
{{- if .Values.dex.extraVolumes }}
{{- toYaml .Values.dex.extraVolumes | nindent 6 }}
{{- end }}
{{- if .Values.dex.initContainers }}
initContainers:
{{- toYaml .Values.dex.initContainers | nindent 6 }}
{{- end }}
{{- if .Values.dex.priorityClassName }}
priorityClassName: {{ .Values.dex.priorityClassName }}
{{- end }}