From 2be120664e95885f503c681d3bb24d4aa46ce3ce Mon Sep 17 00:00:00 2001 From: "Tore S. Loenoey" Date: Thu, 23 Nov 2023 20:41:00 +0100 Subject: [PATCH] docs --- internal/ingress/controller/template/template.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/ingress/controller/template/template.go b/internal/ingress/controller/template/template.go index 32eb0ddf7..1a633139d 100644 --- a/internal/ingress/controller/template/template.go +++ b/internal/ingress/controller/template/template.go @@ -565,7 +565,7 @@ func buildAuthLocation(input interface{}, globalExternalAuthURL string) string { } // shouldApplyGlobalAuth returns true only in case when ExternalAuth.URL is not set and -// GlobalExternalAuth is set, or if GlobalExternalAuth.DefaultEnable is true. +// GlobalExternalAuth is set, assuming global-auth-default-eable is true func shouldApplyGlobalAuth(input interface{}, globalExternalAuthURL string) bool { location, ok := input.(*ingress.Location) if !ok { @@ -634,7 +634,6 @@ func buildAuthProxySetHeaders(headers map[string]string) []string { } func buildAuthUpstreamName(input interface{}, host string) string { - authPath := buildAuthLocation(input, "") if authPath == "" || host == "" { return ""