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
// Adding or updating a ResourceSlice might make a pod schedulable because new resources became available.
@@ -450,7 +452,10 @@ func (pl *dynamicResources) isSchedulableAfterClaimChange(logger klog.Logger, po
450
452
// This is not an unexpected error: we know that
451
453
// foreachPodResourceClaim only returns errors for "not
452
454
// schedulable".
453
-
logger.V(6).Info("pod is not schedulable after resource claim change", "pod", klog.KObj(pod), "claim", klog.KObj(modifiedClaim), "reason", err.Error())
455
+
ifloggerV:=logger.V(6); loggerV.Enabled() {
456
+
owner:=metav1.GetControllerOf(modifiedClaim)
457
+
loggerV.Info("pod is not schedulable after resource claim change", "pod", klog.KObj(pod), "claim", klog.KObj(modifiedClaim), "claimOwner", owner, "reason", err.Error())
458
+
}
454
459
returnframework.QueueSkip, nil
455
460
}
456
461
@@ -474,7 +479,7 @@ func (pl *dynamicResources) isSchedulableAfterClaimChange(logger klog.Logger, po
474
479
}
475
480
476
481
iforiginalClaim==nil {
477
-
logger.V(4).Info("claim for pod got created", "pod", klog.KObj(pod), "claim", klog.KObj(modifiedClaim))
482
+
logger.V(5).Info("claim for pod got created", "pod", klog.KObj(pod), "claim", klog.KObj(modifiedClaim))
478
483
returnframework.Queue, nil
479
484
}
480
485
@@ -492,7 +497,34 @@ func (pl *dynamicResources) isSchedulableAfterClaimChange(logger klog.Logger, po
492
497
returnframework.QueueSkip, nil
493
498
}
494
499
495
-
logger.V(4).Info("status of claim for pod got updated", "pod", klog.KObj(pod), "claim", klog.KObj(modifiedClaim))
500
+
logger.V(5).Info("status of claim for pod got updated", "pod", klog.KObj(pod), "claim", klog.KObj(modifiedClaim))
501
+
returnframework.Queue, nil
502
+
}
503
+
504
+
// isSchedulableAfterPodChange is invoked for update pod events reported by
505
+
// an informer. It checks whether that change adds the ResourceClaim(s) that the
0 commit comments