Merge pull request #37368 from huangzou70/patch-2

Fix kubectl auto complete not usable by non-root user sometimes
This commit is contained in:
Kubernetes Prow Robot 2023-03-25 09:01:53 -07:00 committed by GitHub
commit 9a81722850
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -40,6 +40,7 @@ echo 'source <(kubectl completion bash)' >>~/.bashrc
{{< /tab >}}
{{< tab name="System" codelang="bash" >}}
kubectl completion bash | sudo tee /etc/bash_completion.d/kubectl > /dev/null
sudo chmod a+r /etc/bash_completion.d/kubectl
{{< /tab >}}
{{< /tabs >}}