mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 07:27:21 +00:00
HorizontalPodAutoscaler.Status kept by value, not by pointer.
HorizontalPodAutoscaler.Status kept by value, not by pointer. Fixes #14567.
This commit is contained in:
@@ -1254,7 +1254,7 @@ func (d *HorizontalPodAutoscalerDescriber) Describe(namespace, name string) (str
|
||||
hpa.Spec.Target.Resource)
|
||||
fmt.Fprintf(out, "Current resource consumption:\t")
|
||||
|
||||
if hpa.Status != nil && hpa.Status.CurrentConsumption != nil {
|
||||
if hpa.Status.CurrentConsumption != nil {
|
||||
fmt.Fprintf(out, "%s %s\n",
|
||||
hpa.Status.CurrentConsumption.Quantity.String(),
|
||||
hpa.Status.CurrentConsumption.Resource)
|
||||
|
||||
Reference in New Issue
Block a user