Files
kubernetes/pkg/kubectl
Kubernetes Submit Queue 8a1e83050d Merge pull request #64389 from yue9944882/top-nodes-print-missing-metrics
Automatic merge from submit-queue (batch tested with PRs 64882, 64692, 64389, 60626, 64840). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

print nodes for those metrics is somehow unreachable

**What this PR does / why we need it**:

When we use `kubectl top nodes`, some nodes will be ignored when their metrics cannot be fetched from metrics serve. It might be misleading for users.

This PR helps print the missing nodes like:

```
NAME                CPU(cores)   CPU%      MEMORY(bytes)   MEMORY%  
missing-nodes       -            -         -               -
```

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #63986

**Special notes for your reviewer**:

**Release note**:

```release-note
Fixes missing nodes lines when kubectl top nodes
```
2018-06-20 10:03:27 -07:00
..
2018-05-08 18:33:50 -04:00
2018-05-30 12:14:11 +08:00
2018-05-08 09:02:34 -04:00
2018-05-08 18:33:50 -04:00
2018-05-28 11:09:51 +02:00
2018-05-25 22:18:05 +02:00
2018-06-12 11:23:16 +02:00
2018-05-17 17:20:54 -04:00
2018-05-17 17:20:54 -04:00