feat(librephotos): move to stable (#1894)

This commit is contained in:
Stavros Kois
2022-02-14 10:18:34 +01:00
committed by GitHub
parent 99123afb52
commit 5ef74c6fdf
11 changed files with 1 additions and 1 deletions
@@ -0,0 +1,20 @@
{{/* Define the secrets */}}
{{- define "librephotos.secrets" -}}
---
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: librephotos-secrets
{{- $librephotosprevious := lookup "v1" "Secret" .Release.Namespace "librephotos-secrets" }}
{{- $secret_key := "" }}
data:
{{- if $librephotosprevious}}
SECRET_KEY: {{ index $librephotosprevious.data "SECRET_KEY" }}
{{- else }}
{{- $secret_key := randAlphaNum 32 }}
SECRET_KEY: {{ $secret_key | b64enc | quote }}
{{- end }}
{{- end -}}