From 4aed25b91d4bb3a85418f24857fcbf994b4c6e87 Mon Sep 17 00:00:00 2001 From: Karl Johan Grahn Date: Mon, 16 Dec 2024 20:37:45 +0100 Subject: [PATCH] update --- pkg/kube/wrappers/routeWrapper.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/kube/wrappers/routeWrapper.go b/pkg/kube/wrappers/routeWrapper.go index 9e85500f..5f9d09bd 100644 --- a/pkg/kube/wrappers/routeWrapper.go +++ b/pkg/kube/wrappers/routeWrapper.go @@ -109,7 +109,6 @@ func (rw *RouteWrapper) GetURL(forceHttps bool, healthEndpoint string) string { // Convert url to url object u, err := url.Parse(URL) - log.Info(fmt.Sprintf("rw.getRouteSubPath(): %s", rw.getRouteSubPath())) if err != nil { log.Info(fmt.Sprintf("URL parsing error in getURL() :%v", err)) @@ -120,14 +119,20 @@ func (rw *RouteWrapper) GetURL(forceHttps bool, healthEndpoint string) string { u.Path = healthEndpoint } else { // Append subpath + log.Info(fmt.Sprintf("u.EscapedPath(): %s", u.EscapedPath())) + log.Info(fmt.Sprintf("rw.getRouteSubPath(): %s", rw.getRouteSubPath())) u.Path = path.Join(u.EscapedPath(), rw.getRouteSubPath()) + log.Info(fmt.Sprintf("u.Path: %s", u.Path)) // Find pod by backtracking route -> service -> pod healthEndpoint, exists := rw.tryGetHealthEndpointFromRoute() // Health endpoint from pod successful if exists { + log.Info(fmt.Sprintf("u.EscapedPath(): %s", u.EscapedPath())) + log.Info(fmt.Sprintf("healthEndpoint: %s", healthEndpoint)) u.Path = path.Join(u.EscapedPath(), healthEndpoint) + log.Info(fmt.Sprintf("u.Path: %s", u.Path)) } } log.Info(fmt.Sprintf("u.String(): %s", u.String()))