kubernetes/pkg/kubectl/cmd/auth
Kubernetes Submit Queue fa20f87f1f
Merge pull request #59579 from fbac/kubectl-cani-exitcode
Automatic merge from submit-queue. 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>.

Add exit code 1 on not allowed to kubectl auth can-i

What this PR does / why we need it:
kubectl auth can-i verb resource always returns 0 status, even if the user can't <verb> <resource>

With this commit, kubectl will return exit code 1 when a verb is not allowed. It doesn't affect quiet option.

Release note:
```release-note
Fix kubectl auth can-i exit code. It will return 1 if the user is not allowed and 0 if it's allowed.
```
2018-06-05 07:01:06 -07:00
..
auth.go remove printer helpers 2018-05-07 15:37:55 -04:00
BUILD Merge pull request #63967 from deads2k/rbac-06-external 2018-05-22 08:40:26 -07:00
cani_test.go remove unnecessary factory delegation for RESTClientGetter method 2018-05-28 15:12:41 +02:00
cani.go Merge pull request #59579 from fbac/kubectl-cani-exitcode 2018-06-05 07:01:06 -07:00
reconcile.go Merge pull request #64458 from mrogers950/reconcile-dryrun-additive 2018-05-30 10:09:11 -07:00