Fix DRA nodeSelector for in-tree driver mode#1298
Conversation
|
|
|
Welcome @abyrne55! |
|
Hi @abyrne55. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
|
/easycla |
✅ Deploy Preview for kubernetes-sigs-kmm ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
When spec.moduleLoader is nil (in-tree mode), the DRA reconciler's nodeSelector requires the KMM ready label, which is never set because no module loading occurs. Fall back to spec.selector instead, matching the existing behavior in the device plugin reconciler. Signed-off-by: Anthony Byrne <abyrne@redhat.com>
e5a11c2 to
4416082
Compare
|
/ok-to-test |
|
/lgtm |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abyrne55, yevgeny-shnaidman 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 |
|
@abyrne55: 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. 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. |
|
@abyrne55 you also need to fix the unit-tests. You can run them locally using "make unit-test" |
When
spec.moduleLoaderis nil (in-tree driver mode), the DRA reconciler'snodeSelectorincludes the KMM ready label, which is never set because no module loading occurs. This prevents the DRA DaemonSet from scheduling on any node.Fall back to
spec.selectorinstead, matching the existing behavior in the device plugin reconciler.This PR was written in part with the assistance of generative AI.
Suggested test plan
spec.selectoras its nodeSelectormoduleLoader: nil) and DRA enabled