TrueChartsCatalogClone/incubator/anything-llm/0.1.1/templates/_secrets.tpl

14 lines
413 B
Smarty
Raw Normal View History

{{/* Define the secrets */}}
{{- define "anythinglmm.secrets" -}}
{{- $secretName := (printf "%s-anythinglmm-secrets" (include "tc.v1.common.lib.chart.names.fullname" $)) }}
{{- $jwtSecret := randAlphaNum 64 -}}
{{- with lookup "v1" "Secret" .Release.Namespace $secretName -}}
{{- $jwtSecret = index .data "JWT_SECRET" | b64dec -}}
{{- end }}
enabled: true
data:
JWT_SECRET: {{ $jwtSecret }}
{{- end -}}