Files
devops-infra-helm-charts-gcp/helm-templates/athens-proxy/templates/secret-ssh-git-servers.yaml
T
2026-08-26 03:39:42 +05:30

16 lines
397 B
YAML

{{- if .Values.sshGitServers -}}
kind: Secret
apiVersion: v1
metadata:
name: {{ template "fullname" . }}-ssh-git-servers
labels:
{{- include "athens.metaLabels" . | nindent 4 }}
type: Opaque
data:
{{- range $server := .Values.sshGitServers }}
{{ if (not $server.existingSecret) }}
id_rsa-{{ $server.host }}: {{ $server.privateKey | b64enc | quote }}
{{ end }}
{{- end }}
{{- end -}}