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
This commit is contained in:
Stavros Kois
2022-02-22 11:25:37 +01:00
committed by GitHub
parent ae63bcea40
commit 98cd17f2fb
5 changed files with 313 additions and 8 deletions
@@ -0,0 +1,20 @@
{{/* 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 -}}