-
Notifications
You must be signed in to change notification settings - Fork 264
mnp: Set hostname using downward API
#2840
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
base: master
Are you sure you want to change the base?
Conversation
WalkthroughThe multus-networkpolicy DaemonSet container now receives the node name at runtime: an environment variable Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Cache: Disabled due to data retention organization setting Knowledge base: Disabled due to 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: zeeke The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
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.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge base: Disabled due to Reviews -> Disable Knowledge Base setting
📒 Files selected for processing (1)
bindata/network/multus-networkpolicy/multus-networkpolicy.yaml(1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**
⚙️ CodeRabbit configuration file
-Focus on major issues impacting performance, readability, maintainability and security. Avoid nitpicks and avoid verbosity.
Files:
bindata/network/multus-networkpolicy/multus-networkpolicy.yaml
MultusNetworkPolicy implementation default to `util.GetHostname` to know the name of the node it is running on and filter pods accordingly. In some cases, that information might be not accurate, leading to a wrong behavior of the controller. Use downward api to populate the `--hostname` argument of the multus network policy controller. Link: https://github.com/kubernetes/component-helpers/blob/v0.34.2/node/util/hostname.go#L28 Signed-off-by: Andrea Panattoni <apanatto@redhat.com>
|
/retest |
2 similar comments
|
/retest |
|
/retest |
|
@pliurh @LionelJouin @bpickard22 please, take a look when you have time. |
|
@zeeke: The following tests failed, say
Full PR test history. Your PR dashboard. 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-sigs/prow repository. I understand the commands that are listed here. |
MultusNetworkPolicy implementation default to
util.GetHostnameto know the name of the node it is running on and filter pods accordingly. In some cases, that information might be not accurate, leading to a wrong behavior of the controller.Use downward api to populate the
--hostnameargument of the multus network policy controller.Link: https://github.com/kubernetes/component-helpers/blob/v0.34.2/node/util/hostname.go#L28