mirror of https://github.com/kubernetes/kops.git
Merge pull request #9815 from rifelpet/fix-gce-private
Fix GCE cluster creation with private topology
This commit is contained in:
commit
5b80bb8147
|
|
@ -856,9 +856,10 @@ func setupTopology(opt *NewClusterOptions, cluster *api.Cluster, allZones sets.S
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
subnet := api.ClusterSubnetSpec{
|
subnet := api.ClusterSubnetSpec{
|
||||||
Name: "utility-" + s.Name,
|
Name: "utility-" + s.Name,
|
||||||
Zone: s.Zone,
|
Zone: s.Zone,
|
||||||
Type: api.SubnetTypeUtility,
|
Type: api.SubnetTypeUtility,
|
||||||
|
Region: s.Region,
|
||||||
}
|
}
|
||||||
if subnetID, ok := zoneToSubnetProviderID[s.Zone]; ok {
|
if subnetID, ok := zoneToSubnetProviderID[s.Zone]; ok {
|
||||||
subnet.ProviderID = subnetID
|
subnet.ProviderID = subnetID
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue