You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a load balancer, I get the next error from google API:
Error syncing load balancer: failed to ensure load balancer: failed to create forwarding rule for load balancer (a8811629b918a4c4d8da5705f41f4277(openshift-ingress/router-default)): googleapi: Error 400: Invalid value for field 'resource.target': 'https://compute.googleapis.com/compute/v1/**********************/regions/us-central1/targetPools/a8811629b918a4c4d8da5705f41f4277'. The URL is malformed. Must be a valid In-Project Target Proxy URL or a supported Google API bundle., invalid
This happens because of the change in Google API SDK that was added here with the version bump in #262:
❯ git diff de861a67f32828f69175d064c9847316b1731184~1..HEAD vendor/google.golang.org/api/compute/v1/compute-gen.go
diff --git a/vendor/google.golang.org/api/compute/v1/compute-gen.go b/vendor/google.golang.org/api/compute/v1/compute-gen.go
index a0213951..18c179dd 100644
--- a/vendor/google.golang.org/api/compute/v1/compute-gen.go
+++ b/vendor/google.golang.org/api/compute/v1/compute-gen.go
@@ -1,4 +1,4 @@
-// Copyright 2020 Google LLC.
+// Copyright 2021 Google LLC.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
@@ -78,11 +78,12 @@ var _ = internaloption.WithDefaultEndpoint
const apiId = "compute:v1"
const apiName = "compute"
const apiVersion = "v1"
-const basePath = "https://compute.googleapis.com/compute/v1/projects/"
+const basePath = "https://compute.googleapis.com/compute/v1/"
+const mtlsBasePath = "https://compute.mtls.googleapis.com/compute/v1/"
// OAuth2 scopes used by this API.
When creating a load balancer, I get the next error from google API:
Error syncing load balancer: failed to ensure load balancer: failed to create forwarding rule for load balancer (a8811629b918a4c4d8da5705f41f4277(openshift-ingress/router-default)): googleapi: Error 400: Invalid value for field 'resource.target': 'https://compute.googleapis.com/compute/v1/**********************/regions/us-central1/targetPools/a8811629b918a4c4d8da5705f41f4277'. The URL is malformed. Must be a valid In-Project Target Proxy URL or a supported Google API bundle., invalid
This happens because of the change in Google API SDK that was added here with the version bump in #262:
basePath
has been changed, sotargetPoolURL
returns incorrect result: https://github.com/kubernetes/cloud-provider-gcp/blob/master/providers/gce/gce_loadbalancer_external.go#L635The text was updated successfully, but these errors were encountered: