[traefik-forward-auth] Use namespace in the middleware (#181)

Co-authored-by: ᗪєνιη ᗷυнʟ <onedr0p@users.noreply.github.com>
This commit is contained in:
Mark McWhirter 2020-11-19 13:07:44 +00:00 committed by GitHub
parent c4ba55abe2
commit e3c38e70eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v2
name: traefik-forward-auth name: traefik-forward-auth
description: A minimal forward authentication service that provides OAuth/SSO login and authentication for the traefik reverse proxy/load balancer description: A minimal forward authentication service that provides OAuth/SSO login and authentication for the traefik reverse proxy/load balancer
type: application type: application
version: 1.0.1 version: 1.0.2
appVersion: 2.2.0 appVersion: 2.2.0
keywords: keywords:
- traefik - traefik

View File

@ -5,7 +5,7 @@ metadata:
name: {{ .Values.middleware.name | default "traefik-forward-auth" }} name: {{ .Values.middleware.name | default "traefik-forward-auth" }}
spec: spec:
forwardAuth: forwardAuth:
address: "http://{{ include "traefik-forward-auth.fullname" . }}:{{ .Values.service.port }}" address: "http://{{ include "traefik-forward-auth.fullname" . }}.{{ .Release.Namespace }}:{{ .Values.service.port }}"
authResponseHeaders: authResponseHeaders:
- X-Forwarded-User - X-Forwarded-User
{{- end }} {{- end }}