fix: Adding ipv6 check on the node init function#10
fix: Adding ipv6 check on the node init function#10MitchLewis930 wants to merge 1 commit intopr_050_beforefrom
Conversation
Cilium pods on a single stack cluster were failing when ipv6 was enabled. The change would make sure that if the underlying node does not have ipv6 configuration enabled it would fail even if KPR is disabled.Earlier, if KPR is enabled, the node would not see a fatal error. Signed-off-by: Vipul Singh <singhvipul@microsoft.com>
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||
User description
PR_050
PR Type
Bug fix
Description
Add IPv6 validation check in node initialization
Return error if IPv6 enabled but node lacks IPv6 address
Prevent Cilium pods from failing on single-stack clusters
Ensure consistent behavior regardless of KPR configuration
Diagram Walkthrough
flowchart LR A["Node Information Received"] --> B{"IPv6 Enabled AND<br/>No IPv6 Address?"} B -->|Yes| C["Log Error & Return Error"] B -->|No| D["Continue Node Setup"] C --> E["Fail Fast"] D --> F["Use Node CIDR"]File Walkthrough
init.go
Add IPv6 address validation in node initializationdaemon/k8s/init.go
WaitForNodeInformationfunction