From e3c38e70ebfa98fc6e4b8eb5050ac30259ba3517 Mon Sep 17 00:00:00 2001 From: Mark McWhirter <8041254+mcmarkj@users.noreply.github.com> Date: Thu, 19 Nov 2020 13:07:44 +0000 Subject: [PATCH] [traefik-forward-auth] Use namespace in the middleware (#181) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: ᗪєνιη ᗷυнʟ --- charts/traefik-forward-auth/Chart.yaml | 2 +- charts/traefik-forward-auth/templates/middleware.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/traefik-forward-auth/Chart.yaml b/charts/traefik-forward-auth/Chart.yaml index 11ed771f..7274784b 100644 --- a/charts/traefik-forward-auth/Chart.yaml +++ b/charts/traefik-forward-auth/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: traefik-forward-auth description: A minimal forward authentication service that provides OAuth/SSO login and authentication for the traefik reverse proxy/load balancer type: application -version: 1.0.1 +version: 1.0.2 appVersion: 2.2.0 keywords: - traefik diff --git a/charts/traefik-forward-auth/templates/middleware.yaml b/charts/traefik-forward-auth/templates/middleware.yaml index 171cc41e..c7cb3f40 100644 --- a/charts/traefik-forward-auth/templates/middleware.yaml +++ b/charts/traefik-forward-auth/templates/middleware.yaml @@ -5,7 +5,7 @@ metadata: name: {{ .Values.middleware.name | default "traefik-forward-auth" }} spec: forwardAuth: - address: "http://{{ include "traefik-forward-auth.fullname" . }}:{{ .Values.service.port }}" + address: "http://{{ include "traefik-forward-auth.fullname" . }}.{{ .Release.Namespace }}:{{ .Values.service.port }}" authResponseHeaders: - X-Forwarded-User - {{- end }} \ No newline at end of file + {{- end }}