Files
truecharts/charts/stable/lychee/templates/_secrets.tpl
T
Stavros KoisandGitHub 98cd17f2fb feat(lychee): Add db/redis, fix storage path, add app_key secret, add gui config options (#1928)
* feat(lychee): Add db/redis, fix storage path, add app_key secret, add gui config options

* see output

* without quote

* remove `command`

* Add TZ
2022-02-22 11:25:37 +01:00

21 lines
444 B
Smarty

{{/* Define the secrets */}}
{{- define "lychee.secrets" -}}
---
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: lychee-secrets
{{- $lycheeprevious := lookup "v1" "Secret" .Release.Namespace "lychee-secrets" }}
{{- $app_key := "" }}
data:
{{- if $lycheeprevious}}
APP_KEY: {{ index $lycheeprevious.data "APP_KEY" }}
{{- else }}
{{- $app_key := randAlphaNum 32 }}
APP_KEY: {{ $app_key | b64enc }}
{{- end }}
{{- end -}}