From 4471d02801d0ae71ba38f58a3e0734ecea3f49f3 Mon Sep 17 00:00:00 2001 From: Mukul Date: Tue, 21 Jul 2026 13:01:34 +0530 Subject: [PATCH] fix(nodeutilization): correct misleading notSupportedError message notSupportedError signals that a usage client cannot quantify per-pod resource usage (for example the Prometheus client). Its Error() method returned "maximum number of evicted pods per node reached", which is unrelated to that condition and misleading when it surfaces in logs. Return a message that actually describes the error. Signed-off-by: Mukul --- pkg/framework/plugins/nodeutilization/usageclients.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/framework/plugins/nodeutilization/usageclients.go b/pkg/framework/plugins/nodeutilization/usageclients.go index 90950d0b8..cc4fb4ce5 100644 --- a/pkg/framework/plugins/nodeutilization/usageclients.go +++ b/pkg/framework/plugins/nodeutilization/usageclients.go @@ -50,7 +50,7 @@ type notSupportedError struct { } func (e notSupportedError) Error() string { - return "maximum number of evicted pods per node reached" + return "pod usage quantification is not supported by this usage client" } func newNotSupportedError(usageClientType UsageClientType) *notSupportedError {