Skip to content

Commit 68e1f6e

Browse files
BadLivewareacademician
authored andcommitted
Use locations api instead of zone
1 parent cf25fb4 commit 68e1f6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/store/kubeconfig_store_gke.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ func (s *GKEStore) StartSearch(channel chan storetypes.SearchResult) {
182182
}
183183

184184
for projectName, projectId := range s.ProjectNameToID {
185-
resp, err := s.GkeClient.Projects.Zones.Clusters.List(projectId, "-").Context(ctx).Do()
185+
resp, err := s.GkeClient.Projects.Locations.Clusters.List(fmt.Sprintf("projects/%s/locations/-", projectId)).Context(ctx).Do()
186186
if err != nil {
187187
channel <- storetypes.SearchResult{
188188
Error: fmt.Errorf("failed to list GKE clusters for project with ID %q: %w", projectId, err),

0 commit comments

Comments
 (0)