13 lines
380 B
Smarty
13 lines
380 B
Smarty
{{/* Define the secrets */}}
|
|
{{- define "snipeit.secrets" -}}
|
|
|
|
{{- $secretName := (printf "%s-snipeit-secrets" (include "tc.v1.common.lib.chart.names.fullname" $)) -}}
|
|
{{- $key := randAlphaNum 32 -}}
|
|
{{- with (lookup "v1" "Secret" .Release.Namespace $secretName) -}}
|
|
{{- $key = index .data "APP_KEY" | b64dec -}}
|
|
{{- end }}
|
|
enabled: true
|
|
data:
|
|
APP_KEY: {{ $key }}
|
|
{{- end -}}
|