fix(authentik): don't create empty secret if geoip is not enabled

This commit is contained in:
Stavros Kois
2023-01-05 23:17:01 +02:00
committed by GitHub
parent 89412e1396
commit db3c2a3dc9
2 changed files with 3 additions and 6 deletions

View File

@@ -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

View File

@@ -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