Skip to content

Commit

Permalink
fix(authelia): traefikcrd only include certresolver if specified (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
james-d-elliott authored Aug 12, 2021
1 parent 7ee290d commit 2ed2f97
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions charts/authelia/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: authelia
version: 0.5.5
version: 0.5.6
kubeVersion: ">= 1.13.0-0"
description: Authelia is a Single Sign-On Multi-Factor portal for web apps
type: application
Expand All @@ -23,6 +23,6 @@ maintainers:
email: [email protected]
url: https://github.com/james-d-elliott
icon: https://avatars2.githubusercontent.com/u/59122411?s=200&v=4
appVersion: 4.30.3
appVersion: 4.30.4
deprecated: false
annotations: {}
18 changes: 9 additions & 9 deletions charts/authelia/templates/traefikCRD/ingressRoute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,14 @@ spec:
{{- end }}
{{- if .Values.ingress.tls.enabled }}
tls:
{{- if not .Values.ingress.traefikCRD.tls.certResolver }}
{{- if hasKey .Values.ingress.traefikCRD.tls "certResolver" }}
certResolver: {{ default "default" .Values.ingress.traefikCRD.tls.certResolver }}
domains:
- main: {{ default (include "authelia.ingressHost" .) .Values.ingress.tls.hostNameOverride }}
{{- if .Values.ingress.traefikCRD.tls.sans }}
sans: {{- toYaml .Values.ingress.traefikCRD.tls.sans | nindent 10 }}
{{- end }}
{{- else }}
secretName: {{ default (printf "%s-traefik-tls" (include "authelia.name" .)) .Values.ingress.tls.secret }}
{{- end }}
options:
Expand All @@ -50,12 +57,5 @@ spec:
name: {{ default (include "authelia.name" .) .Values.ingress.traefikCRD.tls.options.nameOverride }}
namespace: {{ .Release.Namespace }}
{{- end }}
certResolver: {{ default "default" .Values.ingress.traefikCRD.tls.certResolver }}
domains:
- main: {{ default (include "authelia.ingressHost" .) .Values.ingress.tls.hostNameOverride }}
{{- if .Values.ingress.traefikCRD.tls.sans }}
sans: {{- toYaml .Values.ingress.traefikCRD.tls.sans | nindent 10 }}
{{- end }}
{{- else }}
{{- end }}
{{- end -}}
{{- end -}}
2 changes: 1 addition & 1 deletion charts/authelia/values.local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ image:
# registry: docker.io
registry: ghcr.io
repository: authelia/authelia
tag: 4.30.3
tag: 4.30.4
pullPolicy: IfNotPresent
pullSecrets: []
# pullSecrets:
Expand Down
2 changes: 1 addition & 1 deletion charts/authelia/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ image:
# registry: docker.io
registry: ghcr.io
repository: authelia/authelia
tag: 4.30.3
tag: 4.30.4
pullPolicy: IfNotPresent
pullSecrets: []
# pullSecrets:
Expand Down

0 comments on commit 2ed2f97

Please sign in to comment.