mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-09-06 12:57:18 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user