Files
kubernetes/pkg/kubectl/cmd
Kubernetes Submit Queue f7dbe30f2b Merge pull request #54373 from dims/better-error-check-for-cluster-info
Automatic merge from submit-queue (batch tested with PRs 53479, 54373, 54441, 54443). 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>.

Better error check for kubectl cluster-info

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

In RunClusterInfo, We try to connect to the api service and get some
information, but we just ignore the errors from Do().Visit(). We should
return the error returned by Do().Visit() so the "kubectl cluster-info"
would fail correctly with an error code.
In RunClusterInfo, We try to connect to the api service and get some
information, but we just ignore the errors from Do().Visit(). We should
return the error returned by Do().Visit() so the "kubectl cluster-info"
would fail correctly with an error code.

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

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
2017-10-23 18:39:05 -07:00
..
2017-10-15 18:18:13 -07:00
2017-10-15 18:18:13 -07:00
2017-10-15 18:18:13 -07:00
2017-10-18 17:24:04 +02:00
2017-08-16 12:27:36 -07:00
2017-08-16 12:27:36 -07:00
2017-10-18 17:23:55 +02:00
2017-10-20 09:21:06 -07:00
2017-08-16 12:27:36 -07:00
2017-10-18 17:23:55 +02:00
2017-08-16 12:27:36 -07:00
2017-08-16 12:27:36 -07:00
2017-08-16 12:27:36 -07:00
2017-08-16 12:27:36 -07:00
2017-10-23 12:50:46 -04:00
2017-10-06 11:55:36 -04:00
2017-10-18 17:23:55 +02:00
2017-10-18 17:23:55 +02:00
2017-08-16 12:27:36 -07:00
2017-08-16 12:27:36 -07:00
2017-10-18 17:23:55 +02:00
2017-08-16 12:27:36 -07:00
2017-08-16 12:27:36 -07:00
2017-10-03 08:18:21 -07:00
2017-05-11 20:09:31 +08:00
2017-08-16 12:27:36 -07:00