k9s
k9s copied to clipboard
Add condition for setting current and target values from AverageValue on HPA renderer
Fixes Issue #1440.
The proposed fix is to check for non-nil, non-zero current and target AverageValue values and, when found, use those when building the entry for the TARGETS% column when rendering an hpa object.
When no non-nil, non-zero AverageValue is found, we fallback to the existing case where the Value fields are used.
There are test cases for both Value and AverageValue cases.
@jpereiramp Thank you for this update! Looks like we have some conflicts...