Skip to content

Commit

Permalink
Merge pull request #1289 from FrancoisKlieberOrange/feat/gke-zonal-cl…
Browse files Browse the repository at this point in the history
…uster-support

feat: gke zonal cluster support
  • Loading branch information
k8s-ci-robot authored Sep 6, 2024
2 parents 3b70681 + 214964d commit 67ff6d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloud/scope/managedcontrolplane.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func (s *ManagedControlPlaneScope) Region() string {

// ClusterLocation returns the location of the cluster.
func (s *ManagedControlPlaneScope) ClusterLocation() string {
return fmt.Sprintf("projects/%s/locations/%s", s.GCPManagedControlPlane.Spec.Project, s.Region())
return fmt.Sprintf("projects/%s/locations/%s", s.GCPManagedControlPlane.Spec.Project, s.GCPManagedControlPlane.Spec.Location)
}

// ClusterFullName returns the full name of the cluster.
Expand Down

0 comments on commit 67ff6d8

Please sign in to comment.