File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -212,8 +212,8 @@ func (s *ClusterScope) SubnetSpecs() []*compute.Subnetwork {
212212 subnets := []* compute.Subnetwork {}
213213 for _ , subnetwork := range s .GCPCluster .Spec .Network .Subnets {
214214 secondaryIPRanges := []* compute.SubnetworkSecondaryRange {}
215- for _ , secondaryCidrBlock := range subnetwork .SecondaryCidrBlocks {
216- secondaryIPRanges = append (secondaryIPRanges , & compute.SubnetworkSecondaryRange {IpCidrRange : secondaryCidrBlock })
215+ for rangeName , secondaryCidrBlock := range subnetwork .SecondaryCidrBlocks {
216+ secondaryIPRanges = append (secondaryIPRanges , & compute.SubnetworkSecondaryRange {RangeName : rangeName , IpCidrRange : secondaryCidrBlock })
217217 }
218218 subnets = append (subnets , & compute.Subnetwork {
219219 Name : subnetwork .Name ,
Original file line number Diff line number Diff line change @@ -212,8 +212,8 @@ func (s *ManagedClusterScope) SubnetSpecs() []*compute.Subnetwork {
212212 subnets := []* compute.Subnetwork {}
213213 for _ , subnetwork := range s .GCPManagedCluster .Spec .Network .Subnets {
214214 secondaryIPRanges := []* compute.SubnetworkSecondaryRange {}
215- for _ , secondaryCidrBlock := range subnetwork .SecondaryCidrBlocks {
216- secondaryIPRanges = append (secondaryIPRanges , & compute.SubnetworkSecondaryRange {IpCidrRange : secondaryCidrBlock })
215+ for rangeName , secondaryCidrBlock := range subnetwork .SecondaryCidrBlocks {
216+ secondaryIPRanges = append (secondaryIPRanges , & compute.SubnetworkSecondaryRange {RangeName : rangeName , IpCidrRange : secondaryCidrBlock })
217217 }
218218 subnets = append (subnets , & compute.Subnetwork {
219219 Name : subnetwork .Name ,
You can’t perform that action at this time.
0 commit comments