(fix) correct authForwardHeader lists on Traefik (#1073)

This commit is contained in:
Kjeld Schouten-Lebbing 2021-10-01 20:01:58 +02:00 committed by GitHub
parent 60a6de543b
commit 5e920673a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View File

@ -22,4 +22,4 @@ sources:
- https://github.com/traefik/traefik-helm-chart
- https://traefik.io/
type: application
version: 9.0.3
version: 9.0.4

View File

@ -13,11 +13,13 @@ metadata:
spec:
forwardAuth:
address: {{ $middlewareData.address }}
{{- if $middlewareData.authResponseHeaders }}
authResponseHeaders: {{ $middlewareData.authResponseHeaders }}
{{- with $middlewareData.authResponseHeaders }}
authResponseHeaders:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- if $middlewareData.authRequestHeaders }}
authRequestHeaders: {{ $middlewareData.authRequestHeaders }}
{{- with $middlewareData.authRequestHeaders }}
authRequestHeaders:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- if $middlewareData.authResponseHeadersRegex }}
authResponseHeadersRegex: {{ $middlewareData.authResponseHeadersRegex }}