Skip to content

Commit aec61d2

Browse files
abyrne55claude
andcommitted
Fix DRA DaemonSet nodeSelector for in-tree module mode
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. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent edbb3a3 commit aec61d2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

internal/controllers/dra_reconciler.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,8 @@ func (dsci *draDaemonSetCreatorImpl) setDRAAsDesired(
483483
versionLabel := utils.GetSchedulePluginVersionLabelName(mod.Namespace, mod.Name)
484484
standardLabels[versionLabel] = mod.Spec.ModuleLoader.Container.Version
485485
nodeSelector[versionLabel] = mod.Spec.ModuleLoader.Container.Version
486+
} else if mod.Spec.ModuleLoader == nil {
487+
nodeSelector = mod.Spec.Selector
486488
}
487489

488490
ds.SetLabels(

0 commit comments

Comments
 (0)