OCPBUGS-63152: use IPFamilies template for wait-for-node-ip#6289
OCPBUGS-63152: use IPFamilies template for wait-for-node-ip#6289rbbratta wants to merge 1 commit into
Conversation
See if we can use the kubelet dualstack node-ip templating info to help with wait-for-node-ip.sh. If kubelet is not trying to bind to an IPv6 address, then we don't need to wait for the IPv6 address?
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@rbbratta: This pull request references Jira Issue OCPBUGS-63152, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: rbbratta The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Caution Review failedAn error occurred during the review process. Please try again later. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
1 similar comment
|
Caution Review failedAn error occurred during the review process. Please try again later. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@cybertron @mko can we use the |
|
@rbbratta: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
cybertron
left a comment
There was a problem hiding this comment.
Would like to see the duplication reduced, but otherwise this makes sense to me.
| # We only want to make sure that if nodeip-configuration detected an IP address, the | ||
| # address is usable. | ||
| # Family-specific checks follow ControllerConfig IPFamilies (network.config serviceNetwork; same as kubelet --node-ip). | ||
| {{- if or (eq .IPFamilies "DualStack") (eq .IPFamilies "DualStackIPv6Primary") }} |
There was a problem hiding this comment.
I don't really like the duplication here. We can just wrap the individual checks in ifs that look for single stack of the opposite family. I.e.
if ipfamilies != ipv6
check for ipv4
if ipfamilies != ipv4
check for ipv6
See if we can use the kubelet dualstack node-ip templating info to help with wait-for-node-ip.sh.
If kubelet is not trying to bind to an IPv6 address, then we don't need to wait for the IPv6 address?
Cursor AI assisted.