Cleanup config files to keep them DRY (#1470)
Signed-off-by: Petr Drastil <petr.drastil@gmail.com>
This commit is contained in:
parent
8847af4522
commit
8ee317128d
12 changed files with 62 additions and 55 deletions
|
|
@ -1,15 +1,15 @@
|
|||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
{{- if .Values.configs.gpgKeysAnnotations }}
|
||||
name: argocd-gpg-keys-cm
|
||||
labels:
|
||||
{{- include "argo-cd.labels" (dict "context" . "name" "gpg-keys-cm") | nindent 4 }}
|
||||
{{- with .Values.configs.gpgKeysAnnotations }}
|
||||
annotations:
|
||||
{{- range $key, $value := .Values.configs.gpgKeysAnnotations }}
|
||||
{{- range $key, $value := . }}
|
||||
{{ $key }}: {{ $value | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "argo-cd.labels" (dict "context" . "name" "gpg-keys-cm") | nindent 4 }}
|
||||
name: argocd-gpg-keys-cm
|
||||
{{- with .Values.configs.gpgKeys }}
|
||||
data:
|
||||
{{- toYaml . | nindent 2 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue