k3s/pkg/kubectl
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
..
apply
apps
cmd Merge pull request #59579 from fbac/kubectl-cani-exitcode 2018-06-05 07:01:06 -07:00
explain
genericclioptions Merge pull request #64453 from deads2k/cli-73-resourcebuidlerflags 2018-05-30 08:42:29 -07:00
metricsutil
plugins
polymorphichelpers Move unrelated methods from the factory to helper 2018-05-24 11:42:26 +08:00
proxy
scheme
util cleanup some dead kubectl code and narrow scope of helpers 2018-05-29 12:44:53 -04:00
validation
.import-restrictions Move pkg/scheduler/schedulercache -> pkg/scheduler/cache 2018-05-31 22:55:34 +08:00
BUILD move filename flags to genericclioptions 2018-05-28 11:09:51 +02:00
OWNERS
apply.go
autoscale.go
autoscale_test.go
clusterrolebinding.go
clusterrolebinding_test.go
conditions.go
configmap.go
configmap_test.go
deployment.go
deployment_test.go
doc.go
env_file.go
env_file_test.go
generate.go
generate_test.go
history.go kubectl: Use apps/v1 Deployment/ReplicaSet. 2018-05-22 13:43:06 -07:00
history_test.go
interfaces.go
namespace.go
namespace_test.go
pdb.go
pdb_test.go
priorityclass.go
priorityclass_test.go
quota.go
quota_test.go
rolebinding.go
rolebinding_test.go
rollback.go kubectl: Use apps/v1 Deployment/ReplicaSet. 2018-05-22 13:43:06 -07:00
rollback_test.go
rolling_updater.go Use DeleteOptions.PropagationPolicy instead of OrphanDependents (deprecated) in kubectl 2018-05-23 16:59:53 +10:00
rolling_updater_test.go
rollout_status.go include rollout object name in cli message 2018-05-29 18:07:41 +08:00
rollout_status_test.go include rollout object name in cli message 2018-05-29 18:07:41 +08:00
run.go
run_test.go
scale.go
scale_test.go Remove kubectl reapers 2018-05-25 22:18:05 +02:00
secret.go remove versioned printer 2018-05-17 17:20:54 -04:00
secret_for_docker_registry.go
secret_for_docker_registry_test.go
secret_for_tls.go
secret_for_tls_test.go
secret_test.go remove versioned printer 2018-05-17 17:20:54 -04:00
service.go
service_basic.go
service_basic_test.go
service_test.go
serviceaccount.go
serviceaccount_test.go
sorter.go Merge pull request #62025 from hanxiaoshuai/bugfix0402 2018-05-22 08:40:16 -07:00
sorter_test.go