Skip to content

Commit

Permalink
feat(eks): add L2 constructs to support EKS Hybrid Nodes (#32389)
Browse files Browse the repository at this point in the history
### Issue # (if applicable)
Closes #32362.

### Reason for this change
This change allows users to specify the networking primitives for an EKS Hybrid nodes cluster through L2 constructs.

### Description of changes
This PR introduces two new top-level fields called `remoteNodeNetworks` and `remotePodNetworks` in the Cluster construct. Together, these allow users to specify the exact CIDRs ranges they want to use for their on-premises nodes and (optionally) pods. The Hybrid nodes feature requires that none of the node and pod CIDRs overlap with each other so I have also added validations for that.

### Description of how you validated changes
Added unit tests with different testcases involving different remote network configurations.

### Checklist
- [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
abhay-krishna authored Feb 12, 2025
1 parent 1d15d49 commit b91965c
Show file tree
Hide file tree
Showing 54 changed files with 10,047 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@
"Arn"
]
},
"AttributesRevision": 3
"AttributesRevision": 4
},
"DependsOn": [
"ClusterCreationRoleDefaultPolicyE8BDFC7B",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@
"Arn"
]
},
"AttributesRevision": 3
"AttributesRevision": 4
},
"DependsOn": [
"ClusterCreationRoleDefaultPolicyE8BDFC7B",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@
"Arn"
]
},
"AttributesRevision": 3
"AttributesRevision": 4
},
"DependsOn": [
"ClusterCreationRoleDefaultPolicyE8BDFC7B",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@
"Arn"
]
},
"AttributesRevision": 3
"AttributesRevision": 4
},
"DependsOn": [
"ClusterCreationRoleDefaultPolicyE8BDFC7B",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@
"Arn"
]
},
"AttributesRevision": 3
"AttributesRevision": 4
},
"DependsOn": [
"ClusterCreationRoleDefaultPolicyE8BDFC7B",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@
"Arn"
]
},
"AttributesRevision": 3
"AttributesRevision": 4
},
"DependsOn": [
"EksAllHandlersInVpcStackDefaultVpcIGW916D42F1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@
"Arn"
]
},
"AttributesRevision": 3
"AttributesRevision": 4
},
"DependsOn": [
"ClusterCreationRoleDefaultPolicyE8BDFC7B",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1236,7 +1236,7 @@
"Arn"
]
},
"AttributesRevision": 3
"AttributesRevision": 4
},
"DependsOn": [
"CIDR6",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@
"Arn"
]
},
"AttributesRevision": 3
"AttributesRevision": 4
},
"DependsOn": [
"ClusterCreationRoleDefaultPolicyE8BDFC7B",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@
"Arn"
]
},
"AttributesRevision": 3
"AttributesRevision": 4
},
"DependsOn": [
"ClusterCreationRoleDefaultPolicyE8BDFC7B",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,7 @@
"Arn"
]
},
"AttributesRevision": 3
"AttributesRevision": 4
},
"DependsOn": [
"ClusterCreationRoleDefaultPolicyE8BDFC7B",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@
"Arn"
]
},
"AttributesRevision": 3
"AttributesRevision": 4
},
"DependsOn": [
"ClusterCreationRoleDefaultPolicyE8BDFC7B",
Expand Down
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b91965c

Please sign in to comment.