mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-05-28 04:04:39 -04:00
* Fix format-string argument order in object metric error messages The error format strings in GetObjectMetricReplicas and GetObjectPerPodMetricReplicas had the arguments in the wrong order, causing objectRef.Kind to be printed where the error should appear and vice versa. Signed-off-by: Mikhail Fedosin <mfedosin@redhat.com> * Use %w for error wrapping in fmt.Errorf calls in podautoscaler Replace %v with %w for error arguments in fmt.Errorf throughout the HPA controller, replica calculator, and metrics client. This enables proper error wrapping so that callers can use errors.Is and errors.As to inspect underlying errors. Signed-off-by: Mikhail Fedosin <mfedosin@redhat.com> --------- Signed-off-by: Mikhail Fedosin <mfedosin@redhat.com> |
||
|---|---|---|
| .. | ||
| client.go | ||
| client_test.go | ||
| interfaces.go | ||
| utilization.go | ||
| utilization_test.go | ||