Files
chart/library/ix-dev/community/homarr/templates/_configuration.tpl
Stavros Kois 522aadb9a3 homarr - adapt to upstream changes (#1791)
* homarr - adapt to upstream changes

* remove password

* render

* add acl

* bump version

* update label

* update readme
2023-12-03 22:13:07 +02:00

15 lines
434 B
Smarty

{{- define "homarr.configuration" -}}
{{- $fullname := (include "ix.v1.common.lib.chart.names.fullname" $) -}}
{{- $secretKey := randAlphaNum 32 -}}
{{- with (lookup "v1" "Secret" .Release.Namespace (printf "%s-homarr-creds" $fullname)) -}}
{{- $secretKey = ((index .data "NEXTAUTH_SECRET") | b64dec) -}}
{{- end }}
secret:
homarr-creds:
enabled: true
data:
NEXTAUTH_SECRET: {{ $secretKey }}
{{- end -}}