k3s/pkg/kubectl/cmd/auth
Kubernetes Submit Queue 63c1ed12aa Merge pull request #52761 from yuexiao-wang/validate-message
Automatic merge from submit-queue (batch tested with PRs 52880, 52855, 52761, 52885, 52929). 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>..

Adjust the validating messages

Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>

**What this PR does / why we need it**:
1.  Adjust the validating messages for user understanding 
2.  Add error messages for easliy testing.
3.  Optimize the  code for switch case.

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

**Special notes for your reviewer**:

**Release note**:
```release-note
NONE
```
2017-09-24 04:30:07 -07:00
..
BUILD add reconcile command to kubectl auth 2017-08-30 16:04:00 -04:00
auth.go add reconcile command to kubectl auth 2017-08-30 16:04:00 -04:00
cani.go Adjust the validating messages 2017-09-21 09:58:50 +08:00
cani_test.go Adjust the validating messages 2017-09-21 09:58:50 +08:00
reconcile.go Merge pull request #52761 from yuexiao-wang/validate-message 2017-09-24 04:30:07 -07:00