github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/argo-cd/templates/argocd-configs/argocd-ssh-known-hosts-cm.yaml (about) 1 apiVersion: v1 2 kind: ConfigMap 3 metadata: 4 name: argocd-ssh-known-hosts-cm 5 namespace: {{ .Release.Namespace | quote }} 6 labels: 7 {{- include "argo-cd.labels" (dict "context" . "name" "ssh-known-hosts-cm") | nindent 4 }} 8 {{- with (mergeOverwrite (deepCopy .Values.configs.ssh.annotations) (.Values.configs.knownHostsAnnotations | default dict)) }} 9 annotations: 10 {{- range $key, $value := . }} 11 {{ $key }}: {{ $value | quote }} 12 {{- end }} 13 {{- end }} 14 data: 15 ssh_known_hosts: | 16 {{- if hasKey .Values.configs "knownHosts" }} 17 {{- .Values.configs.knownHosts.data.ssh_known_hosts | nindent 4 }} 18 {{- else }} 19 {{- .Values.configs.ssh.knownHosts | nindent 4 }} 20 {{- end }} 21 {{- with .Values.configs.ssh.extraHosts }} 22 {{- . | nindent 4 }} 23 {{- end }}