mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Merge pull request #32504 from kargakis/top-pod-fixes
Automatic merge from submit-queue kubectl: run validation for 'top pod' @mksalawa @kubernetes/kubectl
This commit is contained in:
@@ -122,6 +122,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