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 c863757 commit 82cb916
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.EscapedPath() = healthEndpoint

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

View workflow job for this annotation

GitHub Actions / Pull Request

cannot assign to u.EscapedPath() (neither addressable nor a map index expression)

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

View workflow job for this annotation

GitHub Actions / Pull Request

cannot assign to u.EscapedPath() (neither addressable nor a map index expression)
} else {
// Append subpath
u.EscapedPath = path.Join(u.EscapedPath, rw.getRouteSubPath())
u.EscapedPath() = path.Join(u.EscapedPath(), rw.getRouteSubPath())

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

View workflow job for this annotation

GitHub Actions / Pull Request

cannot assign to u.EscapedPath() (neither addressable nor a map index expression)

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

View workflow job for this annotation

GitHub Actions / Pull Request

cannot assign to u.EscapedPath() (neither addressable nor a map index expression)

// 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.EscapedPath() = path.Join(u.EscapedPath(), healthEndpoint)

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

View workflow job for this annotation

GitHub Actions / Pull Request

cannot assign to u.EscapedPath() (neither addressable nor a map index expression)) (typecheck)

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

View workflow job for this annotation

GitHub Actions / Pull Request

cannot assign to u.EscapedPath() (neither addressable nor a map index expression) (typecheck)
}
}
return u.String()
Expand Down

0 comments on commit 82cb916

Please sign in to comment.