Create kubectl
bash-completion
script
#2996
Labels
complexity:easy
Something that requires less than a day to fix
good first issue
Good for newcomers
kind:enhancement
New feature or request
The
kubectl
package we install on some nodes doesn't come with abash-completion
completion script (unlike thekubernetes-client
Fedora package). Whenbash-completion
is installed on a system, gettingkubectl
completion is useful though.We could do this as part of the Salt state by creating
/etc/bash_completion.d
and putting the output ofkubectl completion bash
in file calledkubectl
in said directory (cfr. 05b4be6). Keep in mind, however, we want this state (which likely needscmd.run
or similar) to be idempotent, i.e., render the completions into a variable or some temporary file, then update/etc/bash_completion.d/kubectl
only when the completion script has changed.The text was updated successfully, but these errors were encountered: