Skip to content

Commit

Permalink
Do not set gateway id unless it exists and fix up zone
Browse files Browse the repository at this point in the history
  • Loading branch information
kylewuolle committed Dec 4, 2024
1 parent d57597b commit 6dc051f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/e2e/managedcluster/aws/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,12 @@ func PopulateHostedTemplateVars(ctx context.Context, kc *kubeclient.KubeClient,
"isPublic": subnet["isPublic"],
"availabilityZone": subnet["availabilityZone"],
"id": subnet["resourceID"],
"natGatewayId": subnet["natGatewayId"],
"routeTableId": subnet["routeTableId"],
"zoneType": subnet["availability-zone"],
"zoneType": "availability-zone",
}

if natGatewayID, exists := subnet["natGatewayId"]; exists && natGatewayID != "" {
subnetMaps[i]["natGatewayId"] = natGatewayID
}
}
var subnetsFormatted string
Expand Down

0 comments on commit 6dc051f

Please sign in to comment.