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
nodelink-controller: Support multiple internal IPs. #314
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: If they are not already assigned, you can assign the PR to them by writing 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 |
/lgtm |
can we have a unit test for this? |
/test actuator-pkg-staleness |
21fe5ed
to
46fbbb3
Compare
@russellb would you mind putting a unit for this? |
@enxebre sure, sorry I missed the first time you asked that |
46fbbb3
to
3d8bbb2
Compare
@enxebre added tests. While writing the tests, I noticed that the behavior of |
In a baremetal environment, we may have servers with multiple network interfaces. In that case, the Machine may have multiple internal IPs listed for the different network interfaces. This patch makes the nodelink-controller keep track of all Machine internal IPs so that it can successfully match a Node's internal IP against whichever IP is being used by the kubelet. The patch also includes unit test coverage for add/update/deleteMachine() methods.
3d8bbb2
to
71702a0
Compare
I don't see that unit test failure locally, and it looks unrelated to these changes ... /test unit |
@russellb: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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 kubernetes/test-infra repository. I understand the commands that are listed here. |
/rerun |
In a baremetal environment, we may have servers with multiple network
interfaces. In that case, the Machine may have multiple internal IPs
listed for the different network interfaces.
This patch makes the nodelink-controller keep track of all Machine
internal IPs so that it can successfully match a Node's internal IP
against whichever IP is being used by the kubelet.