-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Introduce --force-device-detection option #32730
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
Conversation
d313db1
to
16f00d0
Compare
03d7554
to
e151d49
Compare
Commit e08b21e does not match "(?m)^Signed-off-by:". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
e08b21e
to
7470f86
Compare
e8c3fca
to
5378e49
Compare
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.
Overall these changes look OK to me.
The same set of checks over devices is performed, eliminating the possibility of 'over-selecting'.
Could you speak a bit about why we need three options for configuring devices? I would have expected one of two: (a) Auto-detection. Cilium tries its best to select devices, and Cilium is responsible for picking the devices. Case (c) Both Cilium and the user specify devices seems like it confuses who is responsible for this logic, and it's yet another complicated flag in an already complicated set of flags for the agent. Can't we just fix (a) or (b) to better cover your use case? |
@joestringer sure, I can explain. The reason is that we're not end user, we're adopting Cilium together with kube-ovn in Cozystack a free platform for running managed services. We need kube-ovn as it provides extensive network fabric for running VirtualMachines using KubeVirt. Our users might have various hardware configurations with various interfaces, eg. some of them using bonding and vlan interfaces, some of them are not, so devices must be auto-detected. But in order to make this configuration working, the The reason I'm insist for adding an extra option and not extend autodetection rules, is that I don't want to break exiting installations. Eg. OpenShift project also uses OVN but different implementation ovn-kubernetes. Some other users might want to run Kubernetes with Cilium on hypervisors with OVN which is unrelated to the Kubernetes networking. Eg, Mirantis uses Kubernetes to provision OpenStack platform, OVN is a default networking for OpenStack for now. Another user-story that I see is that there might be other users who might want to do the same, eg. to create an extra VPN device on every node, that must be always specified in a list in addition to auto-detection rules. |
/test |
/ci-e2e |
/ci-ginkgo |
/ci-ingress |
/ci-ginkgo |
@aanm @joestringer all tests have passed 🎉 |
@kvaps Thanks for the PR. Do you mind to update the documentation too ( |
The new Cilium already enables our patch cilium/cilium#32730. It should be better to update instead of keeping it in-tree Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
Under cilium#32730, the --force-device-detection option was introduced to cilium-agent. The current documentation is ambiguous: * It is unclear that this option can only be used when the --devices option is set * It is unclear that this option is additive, and is not a post-matching filter for those devices matched by --devices. One can only understand the true meaning of this flag by reading through the comments of the original PR. This commit improves the help shown for cilium-agent, the comments on the Helm chart, and the comments in the source where the feature is implemented. Signed-off-by: David Swafford <dswafford@coreweave.com>
Under cilium#32730, the --force-device-detection option was introduced to cilium-agent. The current documentation is ambiguous: * It is unclear that this option can only be used when the --devices option is set * It is unclear that this option is additive, and is not a post-matching filter for those devices matched by --devices. One can only understand the true meaning of this flag by reading through the comments of the original PR. This commit improves the help shown for cilium-agent, the comments on the Helm chart, and the comments in the source where the feature is implemented. Signed-off-by: David Swafford <dswafford@coreweave.com>
Under cilium#32730, the --force-device-detection option was introduced to cilium-agent. The current documentation is ambiguous: * It is unclear that this option can only be used when the --devices option is set * It is unclear that this option is additive, and is not a post-matching filter for those devices matched by --devices. One can only understand the true meaning of this flag by reading through the comments of the original PR. This commit improves the help shown for cilium-agent, the comments on the Helm chart, and the comments in the source where the feature is implemented. Signed-off-by: David Swafford <dswafford@coreweave.com>
Under cilium#32730, the --force-device-detection option was introduced to cilium-agent. The current documentation is ambiguous: * It is unclear that this option can only be used when the --devices option is set * It is unclear that this option is additive, and is not a post-matching filter for those devices matched by --devices. One can only understand the true meaning of this flag by reading through the comments of the original PR. This commit improves the help shown for cilium-agent, the comments on the Helm chart, and the comments in the source where the feature is implemented. Signed-off-by: David Swafford <dswafford@coreweave.com>
Under cilium#32730, the --force-device-detection option was introduced to cilium-agent. The current documentation is ambiguous. This commit aims to reduce confusion by making the following changes: 1) Added the --devices flag to the Helm command reference guide. 2) Revised the description shown for forceDeviceDetection in Helm and --force-device-detection in the Agent's command reference guide. 3) Revised the comments across related source files. 4) Renamed the variable enforceDeviceDetection to forceDeviceDetection on the related datapath source code to be consistent with the user-facing name. In the original PR, the option was named enforce and reviewers asked that it be renamed to force. One variable with two references was left using the original name. Signed-off-by: David Swafford <dswafford@coreweave.com>
Under cilium#32730, the --force-device-detection option was introduced to cilium-agent. The current documentation is ambiguous. This commit aims to reduce confusion by making the following changes: 1) Added the --devices flag to the Helm command reference guide. 2) Revised the description shown for forceDeviceDetection in Helm and --force-device-detection in the Agent's command reference guide. 3) Revised the comments across related source files. 4) Renamed the variable enforceDeviceDetection to forceDeviceDetection on the related datapath source code to be consistent with the user-facing name. In the original PR, the option was named enforce and reviewers asked that it be renamed to force. One variable with two references was left using the original name. Signed-off-by: David Swafford <dswafford@coreweave.com>
Under cilium#32730, the --force-device-detection option was introduced to cilium-agent. The current documentation is ambiguous. This commit aims to reduce confusion by making the following changes: 1) Added the --devices flag to the Helm command reference guide. 2) Revised the description shown for forceDeviceDetection in Helm and --force-device-detection in the Agent's command reference guide. 3) Revised the comments across related source files. 4) Renamed the variable enforceDeviceDetection to forceDeviceDetection on the related datapath source code to be consistent with the user-facing name. In the original PR, the option was named enforce and reviewers asked that it be renamed to force. One variable with two references was left using the original name. Signed-off-by: David Swafford <dswafford@coreweave.com>
Under cilium#32730, the --force-device-detection option was introduced to cilium-agent. The current documentation is ambiguous. This commit aims to reduce confusion by making the following changes: 1) Added the --devices flag to the Helm command reference guide. 2) Revised the description shown for forceDeviceDetection in Helm and --force-device-detection in the Agent's command reference guide. 3) Revised the comments across related source files. 4) Renamed the variable enforceDeviceDetection to forceDeviceDetection on the related datapath source code to be consistent with the user-facing name. In the original PR, the option was named enforce and reviewers asked that it be renamed to force. One variable with two references was left using the original name. Fixes: cilium#37425 Signed-off-by: David Swafford <dswafford@coreweave.com>
Under cilium#32730, the --force-device-detection option was introduced to cilium-agent. The current documentation is ambiguous. This commit aims to reduce confusion by making the following changes: 1) Added the --devices flag to the Helm command reference guide. 2) Revised the description shown for forceDeviceDetection in Helm and --force-device-detection in the Agent's command reference guide. 3) Revised the comments across related source files. 4) Renamed the variable enforceDeviceDetection to forceDeviceDetection on the related datapath source code to be consistent with the user-facing name. In the original PR, the option was named enforce and reviewers asked that it be renamed to force. One variable with two references was left using the original name. Fixes: cilium#37425 Signed-off-by: David Swafford <dswafford@coreweave.com>
Under cilium#32730, the --force-device-detection option was introduced to cilium-agent. The current documentation is ambiguous. This commit aims to reduce confusion by making the following changes: 1) Added the --devices flag to the Helm command reference guide. 2) Revised the description shown for forceDeviceDetection in Helm and --force-device-detection in the Agent's command reference guide. 3) Revised the comments across related source files. 4) Renamed the variable enforceDeviceDetection to forceDeviceDetection on the related datapath source code to be consistent with the user-facing name. In the original PR, the option was named enforce and reviewers asked that it be renamed to force. One variable with two references was left using the original name. Fixes: cilium#37425 Signed-off-by: David Swafford <dswafford@coreweave.com>
Under cilium#32730, the --force-device-detection option was introduced to cilium-agent. The current documentation is ambiguous. This commit aims to reduce confusion by making the following changes: 1) Added the --devices flag to the Helm command reference guide. 2) Revised the description shown for forceDeviceDetection in Helm and --force-device-detection in the Agent's command reference guide. 3) Revised the comments across related source files. 4) Renamed the variable enforceDeviceDetection to forceDeviceDetection on the related datapath source code to be consistent with the user-facing name. In the original PR, the option was named enforce and reviewers asked that it be renamed to force. One variable with two references was left using the original name. Fixes: cilium#37425 Signed-off-by: David Swafford <dswafford@coreweave.com>
Under cilium#32730, the --force-device-detection option was introduced to cilium-agent. The current documentation is ambiguous. This commit aims to reduce confusion by making the following changes: 1) Added the --devices flag to the Helm command reference guide. 2) Revised the description shown for forceDeviceDetection in Helm and --force-device-detection in the Agent's command reference guide. 3) Revised the comments across related source files. 4) Renamed the variable enforceDeviceDetection to forceDeviceDetection on the related datapath source code to be consistent with the user-facing name. In the original PR, the option was named enforce and reviewers asked that it be renamed to force. One variable with two references was left using the original name. Fixes: cilium#37425 Signed-off-by: David Swafford <dswafford@coreweave.com>
Under cilium#32730, the --force-device-detection option was introduced to cilium-agent. The current documentation is ambiguous. This commit aims to reduce confusion by making the following changes: 1) Added the --devices flag to the Helm command reference guide. 2) Revised the description shown for forceDeviceDetection in Helm and --force-device-detection in the Agent's command reference guide. 3) Revised the comments across related source files. 4) Renamed the variable enforceDeviceDetection to forceDeviceDetection on the related datapath source code to be consistent with the user-facing name. In the original PR, the option was named enforce and reviewers asked that it be renamed to force. One variable with two references was left using the original name. Fixes: cilium#37425 Signed-off-by: David Swafford <dswafford@coreweave.com>
Under cilium#32730, the --force-device-detection option was introduced to cilium-agent. The current documentation is ambiguous. This commit aims to reduce confusion by making the following changes: 1) Added the --devices flag to the Helm command reference guide. 2) Revised the description shown for forceDeviceDetection in Helm and --force-device-detection in the Agent's command reference guide. 3) Revised the comments across related source files. 4) Renamed the variable enforceDeviceDetection to forceDeviceDetection on the related datapath source code to be consistent with the user-facing name. In the original PR, the option was named enforce and reviewers asked that it be renamed to force. One variable with two references was left using the original name. Fixes: cilium#37425 Signed-off-by: David Swafford <dswafford@coreweave.com>
Please ensure your pull request adheres to the following guidelines:
description and a
Fixes: #XXX
line if the commit addresses a particularGitHub issue.
Fixes: <commit-id>
tag, thenplease add the commit author[s] as reviewer[s] to this issue.
Fixes: #32721