2021-12-07 10:45:24 +00:00
|
|
|
{{/* Define the secrets */}}
|
|
|
|
{{- define "fireflyiii.secrets" -}}
|
2023-11-16 18:23:35 +00:00
|
|
|
{{- $secretName := (printf "%s-firefly-secrets" (include "tc.v1.common.lib.chart.names.fullname" $)) }}
|
|
|
|
{{- $appKey := randAlphaNum 32 -}}
|
|
|
|
{{- $cronToken := randAlphaNum 32 -}}
|
|
|
|
{{- with (lookup "v1" "Secret" .Release.Namespace $secretName) -}}
|
|
|
|
{{- $appKey = index .data "APP_KEY" | b64dec -}}
|
|
|
|
{{- $cronToken = index .data "STATIC_CRON_TOKEN" | b64dec -}}
|
|
|
|
{{- end }}
|
2023-04-11 10:07:17 +00:00
|
|
|
enabled: true
|
2021-12-07 10:45:24 +00:00
|
|
|
data:
|
2023-11-16 18:23:35 +00:00
|
|
|
STATIC_CRON_TOKEN: {{ $cronToken }}
|
|
|
|
APP_KEY: {{ $appKey }}
|
2021-12-07 10:45:24 +00:00
|
|
|
{{- end -}}
|