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
|
@ -2,7 +2,7 @@ apiVersion: v2
|
||||||
appVersion: v2.2.1
|
appVersion: v2.2.1
|
||||||
description: A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes.
|
description: A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes.
|
||||||
name: argo-cd
|
name: argo-cd
|
||||||
version: 3.29.1
|
version: 3.29.2
|
||||||
home: https://github.com/argoproj/argo-helm
|
home: https://github.com/argoproj/argo-helm
|
||||||
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
|
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
|
||||||
keywords:
|
keywords:
|
||||||
|
@ -21,4 +21,4 @@ dependencies:
|
||||||
condition: redis-ha.enabled
|
condition: redis-ha.enabled
|
||||||
annotations:
|
annotations:
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- "[Changed]: Update to app version 2.2.1"
|
- "[Fix]: repo-server: merge initContainer to one section"
|
||||||
|
|
|
@ -316,6 +316,7 @@ NAME: my-release
|
||||||
| repoServer.clusterRoleRules.rules | list | `[]` | List of custom rules for the Repo server's Cluster Role resource |
|
| repoServer.clusterRoleRules.rules | list | `[]` | List of custom rules for the Repo server's Cluster Role resource |
|
||||||
| repoServer.containerPort | int | `8081` | Configures the repo server port |
|
| repoServer.containerPort | int | `8081` | Configures the repo server port |
|
||||||
| repoServer.containerSecurityContext | object | `{}` | Repo server container-level security context |
|
| repoServer.containerSecurityContext | object | `{}` | Repo server container-level security context |
|
||||||
|
| repoServer.enableCopyutilInitContainer | bool | `true` | Enable the copyutil init container |
|
||||||
| repoServer.env | list | `[]` | Environment variables to pass to repo server |
|
| repoServer.env | list | `[]` | Environment variables to pass to repo server |
|
||||||
| repoServer.envFrom | list | `[]` (See [values.yaml]) | envFrom to pass to repo server |
|
| repoServer.envFrom | list | `[]` (See [values.yaml]) | envFrom to pass to repo server |
|
||||||
| repoServer.extraArgs | list | `[]` | Additional command line arguments to pass to repo server |
|
| repoServer.extraArgs | list | `[]` | Additional command line arguments to pass to repo server |
|
||||||
|
|
|
@ -34,17 +34,6 @@ spec:
|
||||||
{{- if .Values.global.securityContext }}
|
{{- if .Values.global.securityContext }}
|
||||||
securityContext: {{- toYaml .Values.global.securityContext | nindent 8 }}
|
securityContext: {{- toYaml .Values.global.securityContext | nindent 8 }}
|
||||||
{{- end }}
|
{{- 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:
|
containers:
|
||||||
- name: {{ .Values.repoServer.name }}
|
- name: {{ .Values.repoServer.name }}
|
||||||
image: {{ default .Values.global.image.repository .Values.repoServer.image.repository }}:{{ default (include "argo-cd.defaultTag" .) .Values.repoServer.image.tag }}
|
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
|
name: var-files
|
||||||
- emptyDir: {}
|
- emptyDir: {}
|
||||||
name: plugins
|
name: plugins
|
||||||
{{- if .Values.repoServer.initContainers }}
|
{{- if or .Values.repoServer.initContainers .Values.repoServer.enableCopyutilInitContainer }}
|
||||||
initContainers:
|
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 }}
|
{{- toYaml .Values.repoServer.initContainers | nindent 6 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.repoServer.priorityClassName }}
|
{{- if .Values.repoServer.priorityClassName }}
|
||||||
priorityClassName: {{ .Values.repoServer.priorityClassName }}
|
priorityClassName: {{ .Values.repoServer.priorityClassName }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -1530,6 +1530,9 @@ repoServer:
|
||||||
# name: custom-tools
|
# name: custom-tools
|
||||||
# subPath: helm
|
# subPath: helm
|
||||||
|
|
||||||
|
# -- Enable the copyutil init container
|
||||||
|
enableCopyutilInitContainer: true
|
||||||
|
|
||||||
## Argo Configs
|
## Argo Configs
|
||||||
configs:
|
configs:
|
||||||
# -- Provide one or multiple [external cluster credentials]
|
# -- Provide one or multiple [external cluster credentials]
|
||||||
|
|
Loading…
Reference in a new issue