Skip to content

Commit 89d77c7

Browse files
authored
fix: workspace targeting (#32)
1 parent f02fb5e commit 89d77c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/manager/manager.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,8 @@ func (s *Service) getConfigForRuntimeClient(workspace, token string) (*rest.Conf
256256
}
257257

258258
base := fmt.Sprintf("%s://%s", u.Scheme, u.Host)
259-
requestConfig.Host = fmt.Sprintf("%s/clusters/%s", base, workspace)
259+
requestConfig.Host = base
260+
requestConfig.APIPath = fmt.Sprintf("/clusters/%s", workspace)
260261

261262
return requestConfig, nil
262263
}

0 commit comments

Comments
 (0)