scale-catalog/stable/sheetable/7.1.1/templates/_secrets.tpl
Julian Haseleu 5d1ab94342 cleanup
2024-07-14 21:54:53 +00:00

16 lines
404 B
Smarty

{{/* Define the secrets */}}
{{- define "sheetable.secrets" -}}
enabled: true
{{- $sheetableprevious := lookup "v1" "Secret" .Release.Namespace "sheetable-secrets" }}
{{- $api_secret := "" }}
data:
{{- if $sheetableprevious}}
API_SECRET: {{ index $sheetableprevious.data "API_SECRET" }}
{{- else }}
{{- $api_secret := randAlphaNum 32 }}
API_SECRET: {{ $api_secret }}
{{- end }}
{{- end -}}