mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
Merge pull request #70878 from jingxu97/Nov/repd
Remove useBetaAPI option from getReplicaZoneURI
This commit is contained in:
commit
514a5b8f16
@ -158,7 +158,7 @@ func (manager *gceServiceManager) CreateRegionalDiskOnCloudProvider(
|
|||||||
fullyQualifiedReplicaZones := []string{}
|
fullyQualifiedReplicaZones := []string{}
|
||||||
for _, replicaZone := range replicaZones.UnsortedList() {
|
for _, replicaZone := range replicaZones.UnsortedList() {
|
||||||
fullyQualifiedReplicaZones = append(
|
fullyQualifiedReplicaZones = append(
|
||||||
fullyQualifiedReplicaZones, manager.getReplicaZoneURI(replicaZone, true))
|
fullyQualifiedReplicaZones, manager.getReplicaZoneURI(replicaZone))
|
||||||
}
|
}
|
||||||
|
|
||||||
diskToCreate := &compute.Disk{
|
diskToCreate := &compute.Disk{
|
||||||
@ -359,15 +359,8 @@ func (manager *gceServiceManager) getDiskTypeURI(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (manager *gceServiceManager) getReplicaZoneURI(zone string, useBetaAPI bool) string {
|
func (manager *gceServiceManager) getReplicaZoneURI(zone string) string {
|
||||||
var getProjectsAPIEndpoint string
|
return manager.getProjectsAPIEndpoint() + fmt.Sprintf(
|
||||||
if useBetaAPI {
|
|
||||||
getProjectsAPIEndpoint = manager.getProjectsAPIEndpointBeta()
|
|
||||||
} else {
|
|
||||||
getProjectsAPIEndpoint = manager.getProjectsAPIEndpoint()
|
|
||||||
}
|
|
||||||
|
|
||||||
return getProjectsAPIEndpoint + fmt.Sprintf(
|
|
||||||
replicaZoneURITemplateSingleZone,
|
replicaZoneURITemplateSingleZone,
|
||||||
manager.gce.projectID,
|
manager.gce.projectID,
|
||||||
zone)
|
zone)
|
||||||
|
Loading…
Reference in New Issue
Block a user