Skip to content

Commit

Permalink
nodeFit: Use info log level if won't fit (#1220)
Browse files Browse the repository at this point in the history
Pods that don't pass the nodeFit condition currently log an
unsuppressable error message to logs. This changes the log level to info
as it's a normal operating condition.

Signed-off-by: Antoine Deschênes <antoine.deschenes@linux.com>
  • Loading branch information
antoinedeschenes committed Sep 20, 2023
1 parent c0d6019 commit 267efb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/framework/plugins/defaultevictor/defaultevictor.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func (d *DefaultEvictor) PreEvictionFilter(pod *v1.Pod) bool {
return false
}
if !nodeutil.PodFitsAnyOtherNode(d.handle.GetPodsAssignedToNodeFunc(), pod, nodes) {
klog.ErrorS(err, "pod does not fit on any other node because of nodeSelector(s), Taint(s), or nodes marked as unschedulable", "pod", klog.KObj(pod))
klog.InfoS("pod does not fit on any other node because of nodeSelector(s), Taint(s), or nodes marked as unschedulable", "pod", klog.KObj(pod))
return false
}
return true
Expand Down

0 comments on commit 267efb3

Please sign in to comment.