fix(argo-cd): Fix conditional generation of ssh and tls configmaps
Signed-off-by: sbene <sebastien.bene@ubisoft.com>
This commit is contained in:
parent
c77cb712e0
commit
2390a48bb0
5 changed files with 35 additions and 3 deletions
|
@ -3,7 +3,7 @@ appVersion: v2.14.1
|
||||||
kubeVersion: ">=1.25.0-0"
|
kubeVersion: ">=1.25.0-0"
|
||||||
description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes.
|
description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes.
|
||||||
name: argo-cd
|
name: argo-cd
|
||||||
version: 7.8.0
|
version: 7.8.1
|
||||||
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
|
||||||
sources:
|
sources:
|
||||||
|
@ -26,5 +26,5 @@ annotations:
|
||||||
fingerprint: 2B8F22F57260EFA67BE1C5824B11F800CD9D2252
|
fingerprint: 2B8F22F57260EFA67BE1C5824B11F800CD9D2252
|
||||||
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
|
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- kind: changed
|
- kind: fixed
|
||||||
description: Bump argo-cd to v2.14.1
|
description: Make ssh and tls volumes conditional to the configmap creation
|
||||||
|
|
|
@ -267,10 +267,14 @@ spec:
|
||||||
{{- with .Values.applicationSet.extraVolumeMounts }}
|
{{- with .Values.applicationSet.extraVolumeMounts }}
|
||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.configs.ssh.create }}
|
||||||
- mountPath: /app/config/ssh
|
- mountPath: /app/config/ssh
|
||||||
name: ssh-known-hosts
|
name: ssh-known-hosts
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.configs.tls.create }}
|
||||||
- mountPath: /app/config/tls
|
- mountPath: /app/config/tls
|
||||||
name: tls-certs
|
name: tls-certs
|
||||||
|
{{- end }}
|
||||||
- mountPath: /app/config/gpg/source
|
- mountPath: /app/config/gpg/source
|
||||||
name: gpg-keys
|
name: gpg-keys
|
||||||
- mountPath: /app/config/gpg/keys
|
- mountPath: /app/config/gpg/keys
|
||||||
|
@ -313,12 +317,16 @@ spec:
|
||||||
{{- with .Values.applicationSet.extraVolumes }}
|
{{- with .Values.applicationSet.extraVolumes }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.configs.ssh.create }}
|
||||||
- name: ssh-known-hosts
|
- name: ssh-known-hosts
|
||||||
configMap:
|
configMap:
|
||||||
name: argocd-ssh-known-hosts-cm
|
name: argocd-ssh-known-hosts-cm
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.configs.tls.create }}
|
||||||
- name: tls-certs
|
- name: tls-certs
|
||||||
configMap:
|
configMap:
|
||||||
name: argocd-tls-certs-cm
|
name: argocd-tls-certs-cm
|
||||||
|
{{- end }}
|
||||||
- name: gpg-keys
|
- name: gpg-keys
|
||||||
configMap:
|
configMap:
|
||||||
name: argocd-gpg-keys-cm
|
name: argocd-gpg-keys-cm
|
||||||
|
|
|
@ -146,10 +146,14 @@ spec:
|
||||||
{{- with .Values.commitServer.extraVolumeMounts }}
|
{{- with .Values.commitServer.extraVolumeMounts }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.configs.ssh.create }}
|
||||||
- name: ssh-known-hosts
|
- name: ssh-known-hosts
|
||||||
mountPath: /app/config/ssh
|
mountPath: /app/config/ssh
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.configs.tls.create }}
|
||||||
- name: tls-certs
|
- name: tls-certs
|
||||||
mountPath: /app/config/tls
|
mountPath: /app/config/tls
|
||||||
|
{{- end }}
|
||||||
- name: gpg-keys
|
- name: gpg-keys
|
||||||
mountPath: /app/config/gpg/source
|
mountPath: /app/config/gpg/source
|
||||||
- name: gpg-keyring
|
- name: gpg-keyring
|
||||||
|
@ -178,12 +182,16 @@ spec:
|
||||||
{{- with .Values.commitServer.extraVolumes }}
|
{{- with .Values.commitServer.extraVolumes }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.configs.ssh.create }}
|
||||||
- name: ssh-known-hosts
|
- name: ssh-known-hosts
|
||||||
configMap:
|
configMap:
|
||||||
name: argocd-ssh-known-hosts-cm
|
name: argocd-ssh-known-hosts-cm
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.configs.tls.create }}
|
||||||
- name: tls-certs
|
- name: tls-certs
|
||||||
configMap:
|
configMap:
|
||||||
name: argocd-tls-certs-cm
|
name: argocd-tls-certs-cm
|
||||||
|
{{- end }}
|
||||||
- name: gpg-keys
|
- name: gpg-keys
|
||||||
configMap:
|
configMap:
|
||||||
name: argocd-gpg-keys-cm
|
name: argocd-gpg-keys-cm
|
||||||
|
|
|
@ -321,10 +321,14 @@ spec:
|
||||||
{{- if .Values.repoServer.volumeMounts }}
|
{{- if .Values.repoServer.volumeMounts }}
|
||||||
{{- toYaml .Values.repoServer.volumeMounts | nindent 8 }}
|
{{- toYaml .Values.repoServer.volumeMounts | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.configs.ssh.create }}
|
||||||
- mountPath: /app/config/ssh
|
- mountPath: /app/config/ssh
|
||||||
name: ssh-known-hosts
|
name: ssh-known-hosts
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.configs.tls.create }}
|
||||||
- mountPath: /app/config/tls
|
- mountPath: /app/config/tls
|
||||||
name: tls-certs
|
name: tls-certs
|
||||||
|
{{- end }}
|
||||||
- mountPath: /app/config/gpg/source
|
- mountPath: /app/config/gpg/source
|
||||||
name: gpg-keys
|
name: gpg-keys
|
||||||
- mountPath: /app/config/gpg/keys
|
- mountPath: /app/config/gpg/keys
|
||||||
|
@ -471,12 +475,16 @@ spec:
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.configs.ssh.create }}
|
||||||
- name: ssh-known-hosts
|
- name: ssh-known-hosts
|
||||||
configMap:
|
configMap:
|
||||||
name: argocd-ssh-known-hosts-cm
|
name: argocd-ssh-known-hosts-cm
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.configs.tls.create }}
|
||||||
- name: tls-certs
|
- name: tls-certs
|
||||||
configMap:
|
configMap:
|
||||||
name: argocd-tls-certs-cm
|
name: argocd-tls-certs-cm
|
||||||
|
{{- end }}
|
||||||
- name: gpg-keys
|
- name: gpg-keys
|
||||||
configMap:
|
configMap:
|
||||||
name: argocd-gpg-keys-cm
|
name: argocd-gpg-keys-cm
|
||||||
|
|
|
@ -387,10 +387,14 @@ spec:
|
||||||
{{- with .Values.server.volumeMounts }}
|
{{- with .Values.server.volumeMounts }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.configs.ssh.create }}
|
||||||
- mountPath: /app/config/ssh
|
- mountPath: /app/config/ssh
|
||||||
name: ssh-known-hosts
|
name: ssh-known-hosts
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.configs.tls.create }}
|
||||||
- mountPath: /app/config/tls
|
- mountPath: /app/config/tls
|
||||||
name: tls-certs
|
name: tls-certs
|
||||||
|
{{- end }}
|
||||||
- mountPath: /app/config/server/tls
|
- mountPath: /app/config/server/tls
|
||||||
name: argocd-repo-server-tls
|
name: argocd-repo-server-tls
|
||||||
- mountPath: /app/config/dex/tls
|
- mountPath: /app/config/dex/tls
|
||||||
|
@ -521,12 +525,16 @@ spec:
|
||||||
{{- else }}
|
{{- else }}
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.configs.ssh.create }}
|
||||||
- name: ssh-known-hosts
|
- name: ssh-known-hosts
|
||||||
configMap:
|
configMap:
|
||||||
name: argocd-ssh-known-hosts-cm
|
name: argocd-ssh-known-hosts-cm
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.configs.tls.create }}
|
||||||
- name: tls-certs
|
- name: tls-certs
|
||||||
configMap:
|
configMap:
|
||||||
name: argocd-tls-certs-cm
|
name: argocd-tls-certs-cm
|
||||||
|
{{- end }}
|
||||||
- name: styles
|
- name: styles
|
||||||
configMap:
|
configMap:
|
||||||
name: argocd-styles-cm
|
name: argocd-styles-cm
|
||||||
|
|
Loading…
Reference in a new issue