Skip to content

Commit

Permalink
fix(authelia): render tls options only when tls enabled (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
james-d-elliott authored Mar 21, 2022
1 parent 8ec361b commit 6bd44b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/authelia/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: authelia
version: 0.8.19
version: 0.8.20
kubeVersion: ">= 1.13.0-0"
description: Authelia is a Single Sign-On Multi-Factor portal for web apps
type: application
Expand Down
12 changes: 7 additions & 5 deletions charts/authelia/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -916,11 +916,13 @@ Returns true if generation of an IngressRoute is enabled.
Returns if we should use existing TraefikCRD TLSOption
*/}}
{{- define "authelia.enabled.ingress.traefik.tlsOption" -}}
{{- if (include "authelia.enabled.ingress.traefik" .) -}}
{{- if .Values.ingress.traefikCRD.tls -}}
{{- if .Values.ingress.traefikCRD.tls.options -}}
{{- if not (include "authelia.existing.ingress.traefik.tlsOption" .) -}}
{{- true -}}
{{- if .Values.ingress.tls.enabled -}}
{{- if (include "authelia.enabled.ingress.traefik" .) -}}
{{- if .Values.ingress.traefikCRD.tls -}}
{{- if .Values.ingress.traefikCRD.tls.options -}}
{{- if not (include "authelia.existing.ingress.traefik.tlsOption" .) -}}
{{- true -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- end -}}
Expand Down

0 comments on commit 6bd44b3

Please sign in to comment.