Skip to content

Commit

Permalink
🐛 Add ID to secondary subnets (#589)
Browse files Browse the repository at this point in the history
* give name to secondary subnets

* make linter happy
  • Loading branch information
mnitchev committed Apr 16, 2024
1 parent c23e955 commit 959218e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/cloud/services/network/subnets.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ func (s *Service) reconcileSubnets() error {

for i, sub := range subnetCIDRs {
secondarySub := infrav1.SubnetSpec{
ID: fmt.Sprintf("%s-subnet-%s-%s", s.scope.Name(), infrav1.SecondarySubnetTagValue, zones[i]),
CidrBlock: sub.String(),
AvailabilityZone: zones[i],
IsPublic: false,
Expand Down

0 comments on commit 959218e

Please sign in to comment.