From db3c2a3dc901725f910eba10a7b3ab7d856e8eb1 Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Thu, 5 Jan 2023 23:17:01 +0200 Subject: [PATCH] fix(authentik): don't create empty secret if geoip is not enabled --- charts/stable/authentik/Chart.yaml | 2 +- charts/stable/authentik/templates/_secret.tpl | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/charts/stable/authentik/Chart.yaml b/charts/stable/authentik/Chart.yaml index 0e514ec3188..9a9a32e81ce 100644 --- a/charts/stable/authentik/Chart.yaml +++ b/charts/stable/authentik/Chart.yaml @@ -27,7 +27,7 @@ sources: - https://github.com/truecharts/charts/tree/master/charts/stable/authentik - https://github.com/goauthentik/authentik - https://goauthentik.io/docs/ -version: 10.0.27 +version: 10.0.28 annotations: truecharts.org/catagories: | - authentication diff --git a/charts/stable/authentik/templates/_secret.tpl b/charts/stable/authentik/templates/_secret.tpl index 5f78c0dc3b3..f7d39c68ef6 100644 --- a/charts/stable/authentik/templates/_secret.tpl +++ b/charts/stable/authentik/templates/_secret.tpl @@ -8,7 +8,6 @@ {{- $token := randAlphaNum 128 | b64enc }} --- - {{/* This secrets are loaded on both main authentik container and worker */}} apiVersion: v1 kind: Secret @@ -47,8 +46,8 @@ data: AUTHENTIK_EMAIL__FROM: {{ . | b64enc }} {{- end }} +{{- if .Values.geoip.enabled }} --- - {{/* This secrets are loaded on geoip container */}} apiVersion: v1 kind: Secret @@ -72,9 +71,8 @@ data: {{- with .Values.geoip.proxy_user_pass }} GEOIPUPDATE_PROXY_USER_PASSWORD: {{ . | b64enc }} {{- end }} - +{{- end }} --- - {{/* This secrets are loaded on ldap container */}} apiVersion: v1 kind: Secret @@ -91,7 +89,6 @@ data: {{- end }} --- - {{/* This secrets are loaded on ldap container */}} apiVersion: v1 kind: Secret