feat: Lookup referenced configmaps
Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>
This commit is contained in:
parent
abcd61717f
commit
a10982af94
2 changed files with 10 additions and 7 deletions
|
@ -2,7 +2,7 @@ apiVersion: v2
|
||||||
name: argocd-applicationset
|
name: argocd-applicationset
|
||||||
description: A Helm chart for installing ArgoCD ApplicationSet
|
description: A Helm chart for installing ArgoCD ApplicationSet
|
||||||
type: application
|
type: application
|
||||||
version: 0.1.3
|
version: 0.2.0
|
||||||
appVersion: "v0.1.0"
|
appVersion: "v0.1.0"
|
||||||
home: https://github.com/argoproj/argo-helm
|
home: https://github.com/argoproj/argo-helm
|
||||||
icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png
|
icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
{{- $knownHosts := (lookup "v1" "ConfigMap" .Release.Namespace "argocd-ssh-known-hosts-cm") -}}
|
||||||
|
{{- $tlsCerts := (lookup "v1" "ConfigMap" .Release.Namespace "argocd-tls-certs-cm") -}}
|
||||||
|
{{- $gpgKeys:= (lookup "v1" "ConfigMap" .Release.Namespace "argocd-gpg-keys-cm") -}}
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -50,15 +53,15 @@ spec:
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.resources | nindent 12 }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
{{- if .Values.mountSSHKnownHostsVolume }}
|
{{- if and $knownHosts .Values.mountSSHKnownHostsVolume }}
|
||||||
- mountPath: /app/config/ssh
|
- mountPath: /app/config/ssh
|
||||||
name: ssh-known-hosts
|
name: ssh-known-hosts
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.mountTLSCertsVolume }}
|
{{- if and $tlsCerts .Values.mountTLSCertsVolume }}
|
||||||
- mountPath: /app/config/tls
|
- mountPath: /app/config/tls
|
||||||
name: tls-certs
|
name: tls-certs
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.mountGPGKeysVolume }}
|
{{- if and $gpgKeys .Values.mountGPGKeysVolume }}
|
||||||
- mountPath: /app/config/gpg/source
|
- mountPath: /app/config/gpg/source
|
||||||
name: gpg-keys
|
name: gpg-keys
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -67,17 +70,17 @@ spec:
|
||||||
name: gpg-keyring
|
name: gpg-keyring
|
||||||
{{- end }}
|
{{- end }}
|
||||||
volumes:
|
volumes:
|
||||||
{{- if .Values.mountSSHKnownHostsVolume }}
|
{{- if and $knownHosts .Values.mountSSHKnownHostsVolume }}
|
||||||
- configMap:
|
- configMap:
|
||||||
name: argocd-ssh-known-hosts-cm
|
name: argocd-ssh-known-hosts-cm
|
||||||
name: ssh-known-hosts
|
name: ssh-known-hosts
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.mountTLSCertsVolume }}
|
{{- if and $tlsCerts .Values.mountTLSCertsVolume }}
|
||||||
- configMap:
|
- configMap:
|
||||||
name: argocd-tls-certs-cm
|
name: argocd-tls-certs-cm
|
||||||
name: tls-certs
|
name: tls-certs
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.mountGPGKeysVolume }}
|
{{- if and $gpgKeys .Values.mountGPGKeysVolume }}
|
||||||
- configMap:
|
- configMap:
|
||||||
name: argocd-gpg-keys-cm
|
name: argocd-gpg-keys-cm
|
||||||
name: gpg-keys
|
name: gpg-keys
|
||||||
|
|
Loading…
Reference in a new issue