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 <nmukul32@gmail.com>
This commit is contained in:
Mukul
2026-07-28 18:56:28 +05:30
parent 7d2b28bf2b
commit 4471d02801
@@ -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 {