-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update "runtimecfg node-ip" for dual-stack #110
Update "runtimecfg node-ip" for dual-stack #110
Conversation
and remove unused GetFirstAddr function
503d73c
to
0bf7c6e
Compare
4c61df9
to
696e218
Compare
When "runtimecfg node-ip" is called on a node with dual-stack IPs, set "KUBELET_NODE_IPS=<primary-ip>,<secondary-ip>" (in addition to still setting KUBELET_NODE_IP to the primary IP). On single-stack nodes, we also set KUBELET_NODE_IPS, but it's identical to KUBELET_NODE_IP. (Doing things this way makes it easier to consume the output from a systemd service file in MCO.)
696e218
to
83d05af
Compare
MCO change is openshift/machine-config-operator#2277, and this is now tested. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cybertron, danwinship The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
In kube 1.20 you can pass two IPs to
kubelet --node-ip
, but we still need help from runtimecfg to find the right IPs.First commit is just a reorg, second commit adds unit tests without changing functionality, and then the third commit changes the utils functions to return dual-stack answers and changes runtimecfg to make use of it. (Previously the utils functions returned multiple IPs of the same family but the caller only ever used the first value, so this just changes it to return only that first value, plus a second value of the opposite family.)
(I still need to write the corresponding MCO change and test it all...)