-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Allow configurable CNI bin dir in openshift SDN #18464
Allow configurable CNI bin dir in openshift SDN #18464
Conversation
@openshift/sig-networking @dcbw PTAL |
/retest |
1 similar comment
/retest |
/lgtm But we could also perhaps grab this cni-bin-dir and set it in podManager and use that instead of /opt/cni/bin, if for some reason the CNI binaries do get retargeted. |
Why are we adding this? Who would set this wrong? Adding this check is only valuable if we expect this to be hit most of the time. This entire code path is going away very soon, so there's not much value in adding it. |
kubelet supports allowing users to specify path to cni binaries with 'cni-bin-dir' option. |
@pravisankar @smarterclayton /opt is forbidden in some environments, and especially on Fedora/RHEL /opt is not really an allowed place to put stuff. Fedora/RHEL would rather the CNI plugins live in /usr/libexec and in fact the containernetworking-plugins RPM in Fedora puts them there, not /opt. There have also been upstream PRs like kubernetes/kubernetes#46609 that want to put plugins elsewhere. We're probably going to need to support /usr/libexec for CNI plugins when we do the ovn-kubernetes RPM as well. |
/hold |
fd8d643
to
65abbab
Compare
@dcbw @smarterclayton updated based on the feedback, PTAL |
/lgtm At least the SDN parts are useful for the future; I know the kube flags/args thing is going away since we'll be doing a daemonset. But @smarterclayton good point, we need to figure out how the CNI side of things is done when the SDN is a daemonset; I guess cni-bin-dir and cni-conf-dir is going to come from a ConfigMap? Perhaps cni-bin-dir/cni-conf-dir ConfigMap options could be automatically generated based on the kubelet options/config? |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dcbw, pravisankar 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 |
/retest |
/retest Please review the full test history for this PR and help us cut down flakes. |
/test all [submit-queue is verifying that this PR is safe to merge] |
@pravisankar: The following test 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. |
Automatic merge from submit-queue. |
No description provided.