feat: Tandoor recipes chart (#50)

This commit is contained in:
2024-01-29 15:37:59 +01:00
committed by GitHub
parent 03ffb38197
commit 80ba067911
17 changed files with 684 additions and 0 deletions

View File

@ -0,0 +1,12 @@
{{- if empty .Values.secretKey }}
apiVersion: v1
kind: Secret
metadata:
name: "recipes-secret-key"
type: Opaque
data:
{{- $secretObj := (lookup "v1" "Secret" .Release.Namespace "recipes-secret-key") | default dict }}
{{- $secretData := (get $secretObj "data") | default dict }}
{{- $secretKey := (get $secretData "recipes-secret-key") | default (randAlphaNum 64 | b64enc) }}
password: {{ $secretKey | quote }}
{{- end }}