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 @@ -203,8 +203,8 @@ func (s *ClusterScope) SubnetSpecs() []*compute.Subnetwork {
203203 subnets := []* compute.Subnetwork {}
204204 for _ , subnetwork := range s .GCPCluster .Spec .Network .Subnets {
205205 secondaryIPRanges := []* compute.SubnetworkSecondaryRange {}
206- for _ , secondaryCidrBlock := range subnetwork .SecondaryCidrBlocks {
207- secondaryIPRanges = append (secondaryIPRanges , & compute.SubnetworkSecondaryRange {IpCidrRange : secondaryCidrBlock })
206+ for rangeName , secondaryCidrBlock := range subnetwork .SecondaryCidrBlocks {
207+ secondaryIPRanges = append (secondaryIPRanges , & compute.SubnetworkSecondaryRange {RangeName : rangeName , IpCidrRange : secondaryCidrBlock })
208208 }
209209 subnets = append (subnets , & compute.Subnetwork {
210210 Name : subnetwork .Name ,
Original file line number Diff line number Diff line change @@ -203,8 +203,8 @@ func (s *ManagedClusterScope) SubnetSpecs() []*compute.Subnetwork {
203203 subnets := []* compute.Subnetwork {}
204204 for _ , subnetwork := range s .GCPManagedCluster .Spec .Network .Subnets {
205205 secondaryIPRanges := []* compute.SubnetworkSecondaryRange {}
206- for _ , secondaryCidrBlock := range subnetwork .SecondaryCidrBlocks {
207- secondaryIPRanges = append (secondaryIPRanges , & compute.SubnetworkSecondaryRange {IpCidrRange : secondaryCidrBlock })
206+ for rangeName , secondaryCidrBlock := range subnetwork .SecondaryCidrBlocks {
207+ secondaryIPRanges = append (secondaryIPRanges , & compute.SubnetworkSecondaryRange {RangeName : rangeName , IpCidrRange : secondaryCidrBlock })
208208 }
209209 subnets = append (subnets , & compute.Subnetwork {
210210 Name : subnetwork .Name ,
You can’t perform that action at this time.
0 commit comments