-
Notifications
You must be signed in to change notification settings - Fork 265
CNF-21001: 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)
🧰 Additional context used📓 Path-based instructions (1)**⚙️ CodeRabbit configuration file
Files:
🔇 Additional comments (1)
Comment |
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
|
/retest |
2 similar comments
|
/retest |
|
/retest |
|
@pliurh @LionelJouin @bpickard22 please, take a look when you have time. |
|
@pliurh @kyrtapz @LionelJouin any chance to get a review here? |
|
The commit message needs to be updated; the flag name is |
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-override` 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>
Thanks for noticing. just fixed |
|
/retest |
|
@zeeke: The following test failed, say
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. |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pliurh, zeeke The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/check-required-labels |
hostname using downward APIhostname using downward API
|
@zeeke: This pull request references CNF-21001 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set. 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. |
|
/jira refresh |
|
@zeeke: This pull request references CNF-21001 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set. 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. |
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