renovate-charts/templates/secrets.yaml

55 lines
1.4 KiB
YAML
Raw Permalink Normal View History

2021-10-28 17:41:17 +00:00
{{- if .Values.renovate.secEnv }}
---
apiVersion: v1
kind: Secret
metadata:
name: {{ include "renovate.fullname" . }}-secret-env
labels:
{{- include "renovate.labels" . | nindent 4 }}
type: Opaque
stringData:
{{- if not (hasKey .Values.renovate "secEnv") -}}
{{- $_ := set .Values "secEnv" dict -}}
{{- end -}}
{{/* SETUP CONFIG */}}
{{ range $key, $value := .Values.renovate.secEnv }}
{{ upper $key}}: {{ quote $value }}
{{ end }}
{{- end }}
{{- if .Values.renovate.appConfig.content }}
2021-10-28 17:41:17 +00:00
---
apiVersion: v1
kind: Secret
metadata:
name: {{ include "renovate.fullname" . }}-app-config
labels:
{{- include "renovate.labels" . | nindent 4 }}
type: Opaque
stringData:
config: {{ .Values.renovate.appConfig.content | quote }}
2021-10-28 17:41:17 +00:00
{{- end }}
{{- if .Values.renovate.sshConfig.enabled }}
---
apiVersion: v1
kind: Secret
metadata:
name: {{ include "renovate.fullname" . }}-ssh-config
labels:
{{- include "renovate.labels" . | nindent 4 }}
type: Opaque
stringData:
{{- if and .Values.renovate.sshConfig.id_rsa .Values.renovate.sshConfig.id_rsa_pub }}
id_rsa: {{ .Values.renovate.sshConfig.id_rsa | quote }}
id_rsa.pub: {{ .Values.renovate.sshConfig.id_rsa_pub | quote }}
{{- end }}
{{- if and .Values.renovate.sshConfig.id_ed25519 .Values.renovate.sshConfig.id_ed25519_pub }}
id_ed25519: {{ .Values.renovate.sshConfig.id_ed25519 | quote }}
id_ed25519.pub: {{ .Values.renovate.sshConfig.id_ed25519_pub | quote }}
{{- end }}
{{- end }}