argocd-helm/charts/argo-cd/templates/argocd-configs/argocd-tls-certs-cm.yaml
Petr Drastil 5b9f624ba2
feat(argo-cd): Consolidate certificate config for repositories (#1786)
Signed-off-by: Petr Drastil <petr.drastil@gmail.com>
2023-01-21 10:24:46 +01:00

22 lines
654 B
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: argocd-tls-certs-cm
labels:
{{- include "argo-cd.labels" (dict "context" . "name" "tls-certs-cm") | nindent 4 }}
{{- with (mergeOverwrite (deepCopy .Values.configs.ssh.annotations) (.Values.configs.tlsCertsAnnotations | default dict)) -}}
annotations:
{{- range $key, $value := . }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
{{- if hasKey .Values.configs "tlsCerts" }}
{{- with .Values.configs.tlsCerts }}
{{- toYaml . | nindent 0 }}
{{- end }}
{{- else }}
{{- with .Values.configs.tls.certificates }}
data:
{{- toYaml . | nindent 2 }}
{{- end }}
{{- end }}