* feat(authentik): add authentik * add secret * try something crazy * run geoip as a cronjob * test * whoops * add gui options * pin image * add secret togui * try http as main * whops * clear up * clean
21 lines
510 B
Smarty
21 lines
510 B
Smarty
{{/* Define the secrets */}}
|
|
{{- define "authentik.secrets" -}}
|
|
---
|
|
|
|
apiVersion: v1
|
|
kind: Secret
|
|
type: Opaque
|
|
metadata:
|
|
name: authentik-secrets
|
|
{{- $authentikprevious := lookup "v1" "Secret" .Release.Namespace "authentik-secrets" }}
|
|
{{- $secret_key := "" }}
|
|
data:
|
|
{{- if $authentikprevious}}
|
|
AUTHENTIK_SECRET_KEY: {{ index $authentikprevious.data "AUTHENTIK_SECRET_KEY" }}
|
|
{{- else }}
|
|
{{- $secret_key := randAlphaNum 32 }}
|
|
AUTHENTIK_SECRET_KEY: {{ $secret_key | b64enc }}
|
|
{{- end }}
|
|
|
|
{{- end -}}
|