You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (shouldRun&&!scheduled) || (!shouldContinueRunning&&scheduled) {
1448
+
// Enqueue DaemonSet for sync in the following scenarios:
1449
+
// 1. (shouldRun && !scheduled): Node now meets scheduling requirements but no pod exists
1450
+
// - Need to create a new pod on this node
1451
+
// 2. (!shouldContinueRunning && scheduled): Node no longer meets requirements but pod exists
1452
+
// - Need to delete the existing pod from this node
1453
+
// 3. (scheduled && ds.Status.NumberMisscheduled > 0): DaemonSet pod exists and misscheduled count is nonzero.
1454
+
// - For example: a pod was scheduled before the node became unready and tainted; after the node becomes ready and taints are removed, the pod may now be valid again.
1455
+
// - Need to recalculate NumberMisscheduled to ensure the DaemonSet status accurately reflects the current scheduling state.
1456
+
if (shouldRun&&!scheduled) || (!shouldContinueRunning&&scheduled) || (scheduled&&ds.Status.NumberMisscheduled>0) {
0 commit comments