mirror of https://github.com/k3s-io/k3s
![]() 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. ``` |
||
---|---|---|
.. | ||
apply | ||
apps | ||
cmd | ||
explain | ||
genericclioptions | ||
metricsutil | ||
plugins | ||
polymorphichelpers | ||
proxy | ||
scheme | ||
util | ||
validation | ||
.import-restrictions | ||
BUILD | ||
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 | ||
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 | ||
rollback_test.go | ||
rolling_updater.go | ||
rolling_updater_test.go | ||
rollout_status.go | ||
rollout_status_test.go | ||
run.go | ||
run_test.go | ||
scale.go | ||
scale_test.go | ||
secret.go | ||
secret_for_docker_registry.go | ||
secret_for_docker_registry_test.go | ||
secret_for_tls.go | ||
secret_for_tls_test.go | ||
secret_test.go | ||
service.go | ||
service_basic.go | ||
service_basic_test.go | ||
service_test.go | ||
serviceaccount.go | ||
serviceaccount_test.go | ||
sorter.go | ||
sorter_test.go |