Skip to content

Commit 9b5d146

Browse files
authored
Merge pull request #4575 from richardcase/fix_eks_e2e
fix: eks e2e test failing as subnet name was used
2 parents 1f1fa69 + e53f691 commit 9b5d146

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pkg/cloud/services/eks/cluster.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,8 @@ func makeVpcConfig(subnets infrav1.Subnets, endpointAccess ekscontrolplanev1.End
278278
subnetIds := make([]*string, 0)
279279
for i := range subnets {
280280
subnet := subnets[i]
281-
subnetIds = append(subnetIds, &subnet.ID)
281+
subnetID := subnet.GetResourceID()
282+
subnetIds = append(subnetIds, &subnetID)
282283
}
283284

284285
cidrs := make([]*string, 0)

pkg/cloud/services/network/routetables.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ func (s *Service) reconcileRouteTables() error {
115115
// Not recording "SuccessfulTagRouteTable" here as we don't know if this was a no-op or an actual change
116116
continue
117117
}
118+
s.scope.Debug("Subnet isn't associated with route table", "subnet-id", sn.GetResourceID())
118119

119120
// For each subnet that doesn't have a routing table associated with it,
120121
// create a new table with the appropriate default routes and associate it to the subnet.

0 commit comments

Comments
 (0)