Skip to content

Commit 6dec259

Browse files
committed
Revert "Enable GKE service API before the cluster creation"
This reverts commit f3698aa.
1 parent 7a40dd9 commit 6dec259

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

test/k8s-integration/cluster.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -160,16 +160,6 @@ func setImageTypeEnvs(imageType string) error {
160160
}
161161

162162
func clusterUpGKE(gceZone, gceRegion string, numNodes int, numWindowsNodes int, imageType string, useManagedDriver bool) error {
163-
// Enable the GKE service API
164-
gkeURL := os.Getenv("CLOUDSDK_API_ENDPOINT_OVERRIDES_CONTAINER")
165-
if gkeURL == "" {
166-
gkeURL = "container.googleapis.com"
167-
}
168-
_, err := exec.Command("gcloud", "services", "enable", gkeURL).CombinedOutput()
169-
if err != nil {
170-
return fmt.Errorf("failed to enable GKE service API %q: %v", gkeURL, err)
171-
}
172-
173163
locationArg, locationVal, err := gkeLocationArgs(gceZone, gceRegion)
174164
if err != nil {
175165
return err

0 commit comments

Comments
 (0)