mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-10-21 14:38:46 +00:00
Added events to kubectl describe hpa
This commit is contained in:
@@ -1587,6 +1587,11 @@ func (d *HorizontalPodAutoscalerDescriber) Describe(namespace, name string) (str
|
||||
fmt.Fprintf(out, "failed to check Replication Controller\n")
|
||||
}
|
||||
}
|
||||
|
||||
events, _ := d.client.Events(namespace).Search(hpa)
|
||||
if events != nil {
|
||||
DescribeEvents(events, out)
|
||||
}
|
||||
return nil
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user