mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 07:27:21 +00:00
kubectl: run validation for 'top pod'
This commit is contained in:
@@ -119,6 +119,9 @@ func (o TopNodeOptions) RunTopNode() error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if len(metrics) == 0 {
|
||||
return errors.New("metrics not available yet")
|
||||
}
|
||||
|
||||
var nodes []api.Node
|
||||
if len(o.ResourceName) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user