Skip to content

Commit bcc43f8

Browse files
author
Kubernetes Submit Queue
authored
Merge pull request kubernetes#49908 from freehan/cloud-provider-fix
Automatic merge from submit-queue (batch tested with PRs 49870, 49416, 49872, 49892, 49908) fix alpha/beta endpoint when api endpoint is specified fix a bug in alpha/beta compute API endpoint bootstraping when api-endpiont is specified. ```release-note None ```
2 parents 55d314a + a1137f7 commit bcc43f8

File tree

1 file changed

+2
-2
lines changed
  • pkg/cloudprovider/providers/gce

1 file changed

+2
-2
lines changed

pkg/cloudprovider/providers/gce/gce.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@ func CreateGCECloud(apiEndpoint, projectID, region, zone string, managedZones []
290290
// staging API endpoint: https://www.googleapis.com/compute/staging_v1/
291291
if apiEndpoint != "" {
292292
service.BasePath = fmt.Sprintf("%sprojects/", apiEndpoint)
293-
serviceBeta.BasePath = fmt.Sprintf("%sprojects/", strings.Replace(apiEndpoint, "v1", "beta", 0))
294-
serviceAlpha.BasePath = fmt.Sprintf("%sprojects/", strings.Replace(apiEndpoint, "v1", "alpha", 0))
293+
serviceBeta.BasePath = fmt.Sprintf("%sprojects/", strings.Replace(apiEndpoint, "v1", "beta", -1))
294+
serviceAlpha.BasePath = fmt.Sprintf("%sprojects/", strings.Replace(apiEndpoint, "v1", "alpha", -1))
295295
}
296296

297297
containerService, err := container.New(client)

0 commit comments

Comments
 (0)