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 16, 2024
1 parent 4aed25b commit bf4e528
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions pkg/kube/wrappers/routeWrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,22 +119,15 @@ 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))
u.Path = path.Join(u.Path, rw.getRouteSubPath())

// 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))
u.Path = path.Join(u.Path, healthEndpoint)
}
}
log.Info(fmt.Sprintf("u.String(): %s", u.String()))
return u.String()
return url.PathUnescape(u.String())

Check failure on line 132 in pkg/kube/wrappers/routeWrapper.go

View workflow job for this annotation

GitHub Actions / Pull Request

too many return values

Check failure on line 132 in pkg/kube/wrappers/routeWrapper.go

View workflow job for this annotation

GitHub Actions / Pull Request

too many return values

Check failure on line 132 in pkg/kube/wrappers/routeWrapper.go

View workflow job for this annotation

GitHub Actions / Test

too many return values
}

0 comments on commit bf4e528

Please sign in to comment.