Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
karl-johan-grahn committed Dec 15, 2024
1 parent 82cb916 commit 0d1a41c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/kube/wrappers/routeWrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,17 +116,17 @@ func (rw *RouteWrapper) GetURL(forceHttps bool, healthEndpoint string) string {
}

if len(healthEndpoint) != 0 {
u.EscapedPath() = healthEndpoint
u.Path = healthEndpoint
} else {
// Append subpath
u.EscapedPath() = path.Join(u.EscapedPath(), rw.getRouteSubPath())
u.Path = path.Join(u.EscapedPath(), rw.getRouteSubPath())

// Find pod by backtracking route -> service -> pod
healthEndpoint, exists := rw.tryGetHealthEndpointFromRoute()

// Health endpoint from pod successful
if exists {
u.EscapedPath() = path.Join(u.EscapedPath(), healthEndpoint)
u.Path = path.Join(u.EscapedPath(), healthEndpoint)
}
}
return u.String()
Expand Down

0 comments on commit 0d1a41c

Please sign in to comment.