Skip to content

Commit 13f4041

Browse files
authored
Merge branch 'master' into dependabot/go_modules/k8s.io/cli-runtime-0.32.3
2 parents 97ee4ad + f6ed39b commit 13f4041

File tree

9 files changed

+229
-11
lines changed

9 files changed

+229
-11
lines changed

.go-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.24.1
1+
1.24.2

charts/aws-vpc-cni/values.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ nodeAgent:
4646
networkPolicyAgentLogFileLocation: "/var/log/aws-routed-eni/network-policy-agent.log"
4747
enableIpv6: "false"
4848
metricsBindAddr: "8162"
49-
metricsBindPort: "8162"
5049
healthProbeBindAddr: "8163"
5150
conntrackCacheCleanupPeriod: 300
5251
resources: {}

misc/eni-max-pods.txt

+12
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ c7gn.large 29
208208
c7gn.medium 8
209209
c7gn.metal 737
210210
c7gn.xlarge 58
211+
c7i-flex.12xlarge 234
212+
c7i-flex.16xlarge 737
211213
c7i-flex.2xlarge 58
212214
c7i-flex.4xlarge 234
213215
c7i-flex.8xlarge 234
@@ -256,6 +258,9 @@ dl2q.24xlarge 737
256258
f1.16xlarge 394
257259
f1.2xlarge 58
258260
f1.4xlarge 234
261+
f2.12xlarge 234
262+
f2.48xlarge 737
263+
f2.6xlarge 234
259264
g4ad.16xlarge 234
260265
g4ad.2xlarge 8
261266
g4ad.4xlarge 29
@@ -357,11 +362,14 @@ i7ie.3xlarge 58
357362
i7ie.48xlarge 737
358363
i7ie.6xlarge 234
359364
i7ie.large 29
365+
i7ie.metal-24xl 737
366+
i7ie.metal-48xl 737
360367
i7ie.xlarge 58
361368
i8g.12xlarge 234
362369
i8g.16xlarge 737
363370
i8g.24xlarge 737
364371
i8g.2xlarge 58
372+
i8g.48xlarge 737
365373
i8g.4xlarge 234
366374
i8g.8xlarge 234
367375
i8g.large 29
@@ -562,6 +570,8 @@ m7gd.large 29
562570
m7gd.medium 8
563571
m7gd.metal 737
564572
m7gd.xlarge 58
573+
m7i-flex.12xlarge 234
574+
m7i-flex.16xlarge 737
565575
m7i-flex.2xlarge 58
566576
m7i-flex.4xlarge 234
567577
m7i-flex.8xlarge 234
@@ -857,6 +867,8 @@ u-6tb1.metal 147
857867
u-9tb1.112xlarge 737
858868
u-9tb1.metal 147
859869
u7i-12tb.224xlarge 737
870+
u7i-6tb.112xlarge 737
871+
u7i-8tb.112xlarge 737
860872
u7in-16tb.224xlarge 394
861873
u7in-24tb.224xlarge 394
862874
u7in-32tb.224xlarge 394

pkg/vpc/vpc_ip_resource_limit.go

+168
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/framework/resources/aws/services/ec2.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ type EC2 interface {
3636
AssociateVPCCIDRBlock(ctx context.Context, vpcId string, cidrBlock string) (*ec2.AssociateVpcCidrBlockOutput, error)
3737
TerminateInstance(ctx context.Context, instanceIDs []string) error
3838
DisAssociateVPCCIDRBlock(ctx context.Context, associationID string) error
39-
DescribeSubnet(ctx context.Context, subnetID string) (*ec2.DescribeSubnetsOutput, error)
39+
DescribeSubnets(ctx context.Context, subnetIDs []string) (*ec2.DescribeSubnetsOutput, error)
4040
CreateSubnet(ctx context.Context, cidrBlock string, vpcID string, az string) (*ec2.CreateSubnetOutput, error)
4141
DeleteSubnet(ctx context.Context, subnetID string) error
4242
DescribeRouteTables(ctx context.Context, subnetID string) (*ec2.DescribeRouteTablesOutput, error)
@@ -290,9 +290,9 @@ func (d *defaultEC2) CreateSubnet(ctx context.Context, cidrBlock string, vpcID s
290290
return d.client.CreateSubnet(ctx, createSubnetInput)
291291
}
292292

293-
func (d *defaultEC2) DescribeSubnet(ctx context.Context, subnetID string) (*ec2.DescribeSubnetsOutput, error) {
293+
func (d *defaultEC2) DescribeSubnets(ctx context.Context, subnetIDs []string) (*ec2.DescribeSubnetsOutput, error) {
294294
describeSubnetInput := &ec2.DescribeSubnetsInput{
295-
SubnetIds: []string{subnetID},
295+
SubnetIds: subnetIDs,
296296
}
297297
return d.client.DescribeSubnets(ctx, describeSubnetInput)
298298
}

test/framework/resources/aws/utils/nodegroup.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ func GetClusterVPCConfig(f *framework.Framework) (*ClusterVPCConfig, error) {
281281

282282
uniqueAZ := map[string]bool{}
283283
for _, subnet := range clusterConfig.PublicSubnetList {
284-
describeSubnet, err := f.CloudServices.EC2().DescribeSubnet(context.TODO(), subnet)
284+
describeSubnet, err := f.CloudServices.EC2().DescribeSubnets(context.TODO(), []string{subnet})
285285
if err != nil {
286286
return nil, fmt.Errorf("failed to describe the subnet %s: %v", subnet, err)
287287
}

test/integration/az-traffic/pod_traffic_across_az_test.go

+42-3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,45 @@ const MetricNamespace = "NetworkingAZConnectivity"
2828

2929
var f *framework.Framework
3030

31+
func getClusterAZs(ctx context.Context, clusterName string) ([]string, error) {
32+
// Step 1: Get all AZs in the region
33+
describeAZOutput, err := f.CloudServices.EC2().DescribeAvailabilityZones(ctx)
34+
if err != nil {
35+
return nil, fmt.Errorf("failed to describe availability zones: %w", err)
36+
}
37+
38+
// Step 2: Get cluster info
39+
clusterInfo, err := f.CloudServices.EKS().DescribeCluster(ctx, clusterName)
40+
if err != nil {
41+
return nil, fmt.Errorf("failed to describe cluster: %w", err)
42+
}
43+
44+
// Step 3: Get subnet info
45+
subnetIDs := clusterInfo.Cluster.ResourcesVpcConfig.SubnetIds
46+
describeSubnetsOutput, err := f.CloudServices.EC2().DescribeSubnets(ctx, subnetIDs)
47+
if err != nil {
48+
return nil, fmt.Errorf("failed to describe subnets: %w", err)
49+
}
50+
51+
// Step 4: Create a map of cluster AZs
52+
clusterAZs := make(map[string]bool)
53+
for _, subnet := range describeSubnetsOutput.Subnets {
54+
clusterAZs[*subnet.AvailabilityZone] = true
55+
}
56+
57+
// Step 5: Filter and deduplicate AZs
58+
var filteredAZs []string
59+
azSet := make(map[string]bool)
60+
for _, az := range describeAZOutput.AvailabilityZones {
61+
if clusterAZs[*az.ZoneName] && !azSet[*az.ZoneName] {
62+
filteredAZs = append(filteredAZs, *az.ZoneName)
63+
azSet[*az.ZoneName] = true
64+
}
65+
}
66+
67+
return filteredAZs, nil
68+
}
69+
3170
var _ = Describe("[STATIC_CANARY] AZ Node Presence", FlakeAttempts(retries), func() {
3271

3372
Context("While testing AZ availability", func() {
@@ -37,11 +76,11 @@ var _ = Describe("[STATIC_CANARY] AZ Node Presence", FlakeAttempts(retries), fun
3776
nodes, err := f.K8sResourceManagers.NodeManager().GetNodes(f.Options.NgNameLabelKey, f.Options.NgNameLabelVal)
3877
Expect(err).ToNot(HaveOccurred())
3978

40-
describeAZOutput, err := f.CloudServices.EC2().DescribeAvailabilityZones(context.TODO())
79+
clusterAZs, err := getClusterAZs(context.TODO(), f.Options.ClusterName)
4180
Expect(err).ToNot(HaveOccurred())
4281

43-
for _, az := range describeAZOutput.AvailabilityZones {
44-
nodePresenceInAZ[*az.ZoneName] = false
82+
for _, az := range clusterAZs {
83+
nodePresenceInAZ[az] = false
4584
}
4685
for i := range nodes.Items {
4786
// node label key "topology.kubernetes.io/zone" is well known label populated by cloud controller manager

test/integration/eni-subnet-discovery/eni_subnet_discovery_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ func checkSecondaryENISubnets(expectNewCidr bool) {
319319

320320
By(fmt.Sprintf("checking the secondary ENI subnets are in the CIDR %s", expectedCidrRangeString))
321321
for _, subnetID := range newEniSubnetIds {
322-
subnetOutput, err := f.CloudServices.EC2().DescribeSubnet(context.TODO(), subnetID)
322+
subnetOutput, err := f.CloudServices.EC2().DescribeSubnets(context.TODO(), []string{subnetID})
323323
Expect(err).ToNot(HaveOccurred())
324324
cidrSplit := strings.Split(*subnetOutput.Subnets[0].CidrBlock, "/")
325325
actualSubnetIp, _, _ := net.ParseCIDR(*subnetOutput.Subnets[0].CidrBlock)

test/integration/snat/snat_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ var _ = Describe("SNAT tests", func() {
7373
Context("Validate AWS_VPC_K8S_CNI_EXCLUDE_SNAT_CIDRS", func() {
7474
It("Verify External Domain Connectivity by modifying AWS_VPC_K8S_CNI_EXCLUDE_SNAT_CIDRS", func() {
7575
By("Getting CIDR for primary node's private subnet")
76-
out, err := f.CloudServices.EC2().DescribeSubnet(context.TODO(), privateSubnetId)
76+
out, err := f.CloudServices.EC2().DescribeSubnets(context.TODO(), []string{privateSubnetId})
7777
Expect(err).NotTo(HaveOccurred())
7878
Expect(len(out.Subnets)).To(BeNumerically(">", 0))
7979

0 commit comments

Comments
 (0)