mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Merge pull request #14732 from jszczepkowski/hpa-api-fix
Auto commit by PR queue bot
This commit is contained in:
@@ -1260,7 +1260,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