2022-10-31 15:52:45 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: ConfigMap
|
|
|
|
metadata:
|
|
|
|
name: argocd-ssh-known-hosts-cm
|
|
|
|
labels:
|
2023-01-24 15:10:05 +00:00
|
|
|
{{- include "argo-cd.labels" (dict "context" . "name" "ssh-known-hosts-cm") | nindent 4 }}
|
|
|
|
{{- with (mergeOverwrite (deepCopy .Values.configs.ssh.annotations) (.Values.configs.knownHostsAnnotations | default dict)) }}
|
2022-10-31 15:52:45 +00:00
|
|
|
annotations:
|
|
|
|
{{- range $key, $value := . }}
|
|
|
|
{{ $key }}: {{ $value | quote }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
2023-01-24 15:10:05 +00:00
|
|
|
data:
|
|
|
|
ssh_known_hosts: |
|
|
|
|
{{- if hasKey .Values.configs "knownHosts" }}
|
|
|
|
{{- .Values.configs.knownHosts.data.ssh_known_hosts | nindent 4 }}
|
|
|
|
{{- else }}
|
|
|
|
{{- .Values.configs.ssh.knownHosts | nindent 4 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.configs.ssh.extraHosts }}
|
|
|
|
{{- . | nindent 4 }}
|
|
|
|
{{- end }}
|