Fix kubectl autocompletion may only work on root
The current instructions creates a /etc/bash_completion.d/kubectl file with the default file permission, and may not always contain the necessary global read permission for all users of the system to use the config. This is fixed by adding a chmod command that adds the missing permisison, in case it is missingpull/37368/head
parent
c02f3e0136
commit
608663e049
|
@ -36,6 +36,7 @@ echo 'source <(kubectl completion bash)' >>~/.bashrc
|
||||||
{{< /tab >}}
|
{{< /tab >}}
|
||||||
{{< tab name="System" codelang="bash" >}}
|
{{< tab name="System" codelang="bash" >}}
|
||||||
kubectl completion bash | sudo tee /etc/bash_completion.d/kubectl > /dev/null
|
kubectl completion bash | sudo tee /etc/bash_completion.d/kubectl > /dev/null
|
||||||
|
sudo chmod a+r /etc/bash_completion.d/kubectl
|
||||||
{{< /tab >}}
|
{{< /tab >}}
|
||||||
{{< /tabs >}}
|
{{< /tabs >}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue