1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 15:47:14 +01:00

Merge pull request #9430 from openshift-cherrypick-robot/cherry-pick-9413-to-release-4.18

[release-4.18] OCPBUGS-49792: aws/edge/byovpc: subnets tag kube cluster tag to shared
This commit is contained in:
openshift-merge-bot[bot]
2025-02-07 03:57:23 +00:00
committed by GitHub

View File

@@ -63,13 +63,21 @@ func tagSharedVPCResources(ctx context.Context, clusterID string, installConfig
return err
}
ids := make([]*string, 0, len(privateSubnets)+len(publicSubnets))
for id := range privateSubnets {
edgeSubnets, err := installConfig.AWS.EdgeSubnets(ctx)
if err != nil {
return err
}
ids := make([]*string, 0, len(privateSubnets)+len(publicSubnets)+len(edgeSubnets))
for id := range publicSubnets {
ids = append(ids, aws.String(id))
}
for id := range publicSubnets {
ids = append(ids, aws.String(id))
}
for id := range edgeSubnets {
ids = append(ids, aws.String(id))
}
session, err := installConfig.AWS.Session(ctx)
if err != nil {