16 lines
417 B
YAML
16 lines
417 B
YAML
|
{{- if or .Values.git.deployKey .Values.git.deployKeyBase64 }}
|
||
|
apiVersion: v1
|
||
|
kind: Secret
|
||
|
metadata:
|
||
|
name: {{ template "common.names.fullname" . }}-deploykey
|
||
|
labels:
|
||
|
{{- include "common.labels" . | nindent 4 }}
|
||
|
type: Opaque
|
||
|
data:
|
||
|
{{- if .Values.git.deployKey }}
|
||
|
id_rsa: {{ .Values.git.deployKey | b64enc | quote }}
|
||
|
{{- else }}
|
||
|
id_rsa: {{ .Values.git.deployKeyBase64 | quote }}
|
||
|
{{- end }}
|
||
|
{{- end }}
|