Files
truecharts/charts/incubator/umami/templates/_secret.tpl
T
cc8ffb861c feat(umami): Add umami (#3717)
* add test

* add question

* clean up

* fix

* add salt

* add end

* fix

* secrets

* test

* lint

* low

* test

* bump

* Update _secrets.tpl

* Let users fill in their own encryption salt

* Let users fill in their own encryption salt

* make some changes

* some typos

* some typos

* update questions

* rofs

* updatequestions

* see users

* 1001

* rofs

* update questions

Co-authored-by: Stavros kois <s.kois@outlook.com>
2022-09-15 09:21:59 +03:00

24 lines
584 B
Smarty

{{/* Define the secret */}}
{{- define "umami.secret" -}}
{{- $secretName := printf "%s-secret" (include "tc.common.names.fullname" .) }}
---
{{/* This secrets are loaded on both main authentik container and worker */}}
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: {{ $secretName }}
labels:
{{- include "tc.common.labels" . | nindent 4 }}
data:
{{/* Secret Key */}}
{{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }}
HASH_SALT: {{ index .data "HASH_SALT" }}
{{- else }}
HASH_SALT: {{ randAlphaNum 32 | b64enc }}
{{- end }}
{{- end }}