Skip to content

Commit 959218e

Browse files
committed
🐛 Add ID to secondary subnets (#589)
* give name to secondary subnets * make linter happy
1 parent c23e955 commit 959218e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/cloud/services/network/subnets.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ func (s *Service) reconcileSubnets() error {
115115

116116
for i, sub := range subnetCIDRs {
117117
secondarySub := infrav1.SubnetSpec{
118+
ID: fmt.Sprintf("%s-subnet-%s-%s", s.scope.Name(), infrav1.SecondarySubnetTagValue, zones[i]),
118119
CidrBlock: sub.String(),
119120
AvailabilityZone: zones[i],
120121
IsPublic: false,

0 commit comments

Comments
 (0)