fix(argo-cd): Merge duplicate initContainer entries introduced in 3.29.0 (#1058)
* fix(repo-server): merge initContainer to one section Signed-off-by: Alex Babel <alexander.babel@icloud.com> * chore(argo-cd): bump version to 3.29.1 Signed-off-by: Alex Babel <alexander.babel@icloud.com> * Merge master into fix/repo-server-init-container Signed-off-by: Alex Babel <alexander.babel@icloud.com> * fix(argo-cd): add enableCopyutilInitContainer option Signed-off-by: Alex Babel <alexander.babel@icloud.com> * doc: update readme Signed-off-by: Alex Babel <alexander.babel@icloud.com>
This commit is contained in:
parent
eb8273ecce
commit
0dc0b845a3
4 changed files with 21 additions and 14 deletions
|
|
@ -34,17 +34,6 @@ spec:
|
|||
{{- if .Values.global.securityContext }}
|
||||
securityContext: {{- toYaml .Values.global.securityContext | nindent 8 }}
|
||||
{{- end }}
|
||||
initContainers:
|
||||
- command:
|
||||
- cp
|
||||
- -n
|
||||
- /usr/local/bin/argocd
|
||||
- /var/run/argocd/argocd-cmp-server
|
||||
image: {{ default .Values.global.image.repository .Values.repoServer.image.repository }}:{{ default (include "argo-cd.defaultTag" .) .Values.repoServer.image.tag }}
|
||||
name: copyutil
|
||||
volumeMounts:
|
||||
- mountPath: /var/run/argocd
|
||||
name: var-files
|
||||
containers:
|
||||
- name: {{ .Values.repoServer.name }}
|
||||
image: {{ default .Values.global.image.repository .Values.repoServer.image.repository }}:{{ default (include "argo-cd.defaultTag" .) .Values.repoServer.image.tag }}
|
||||
|
|
@ -194,10 +183,24 @@ spec:
|
|||
name: var-files
|
||||
- emptyDir: {}
|
||||
name: plugins
|
||||
{{- if .Values.repoServer.initContainers }}
|
||||
{{- if or .Values.repoServer.initContainers .Values.repoServer.enableCopyutilInitContainer }}
|
||||
initContainers:
|
||||
{{- if .Values.repoServer.enableCopyutilInitContainer }}
|
||||
- command:
|
||||
- cp
|
||||
- -n
|
||||
- /usr/local/bin/argocd
|
||||
- /var/run/argocd/argocd-cmp-server
|
||||
image: {{ default .Values.global.image.repository .Values.repoServer.image.repository }}:{{ default (include "argo-cd.defaultTag" .) .Values.repoServer.image.tag }}
|
||||
name: copyutil
|
||||
volumeMounts:
|
||||
- mountPath: /var/run/argocd
|
||||
name: var-files
|
||||
{{- end }}
|
||||
{{- if .Values.repoServer.initContainers }}
|
||||
{{- toYaml .Values.repoServer.initContainers | nindent 6 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if .Values.repoServer.priorityClassName }}
|
||||
priorityClassName: {{ .Values.repoServer.priorityClassName }}
|
||||
{{- end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue