Allow migration from dual-stack [IPv4, IPv6] to single stack [IPv4] networking#1481
Conversation
| "useWorkloadIdentity": useWorkloadIdentity, | ||
| } | ||
| enabled := mode != "ipv4" | ||
| enabled := mode != "ipv4" || utils.HasIPv6NodeCIDR(cluster.Shoot.Status.Networking.Nodes) |
There was a problem hiding this comment.
Could a nil pointer access happen here?
I think we should check for that to be on the safe side.
It could even be done in HasIPv6NodeCIDR since it's always called with cluster.Shoot.Status.Networking.Nodes.
| @@ -0,0 +1,22 @@ | |||
| package utils | |||
| } | ||
|
|
||
| // HasIPv6NodeCIDR checks if any of the node CIDRs is IPv6 | ||
| func HasIPv6NodeCIDR(nodeCIDRs []string) bool { |
There was a problem hiding this comment.
Could you please add some unit tests.
|
The recent changes introduce enhancements that better support IPv6 networking configurations in the Gardener AWS extension. Specifically, the update includes utility functions that aid in determining IPv6 support by inspecting node CIDR configurations. These changes improve the decision-making process around feature enablement in the control plane and ensure optimal configuration without relying solely on predefined networking specifications. Walkthrough
Model: gpt-4o | Prompt Tokens: 1858 | Completion Tokens: 142 |
How to categorize this PR?
/area networking
/kind enhancement
/platform aws
What this PR does / why we need it:
PR is needed for gardener/gardener#12967
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note: