Kubectl bash Autocomplete is broken with latest bash-completion version #1695
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
What happened:
kubectl autocomplete is broken with the below error
"bash: _get_comp_words_by_ref: command not found"
with 2.14 Bash-completion version. From the bash-completion docs "_get_comp_words_by_ref" seems to be a deprecated API.
What you expected to happen:
Bash Autocomplete to work as for older versions.
How to reproduce it (as minimally and precisely as possible):
Install latest "bash-completion" package and try out "kubectl" autocomplete.
Anything else we need to know?:
Environment:
kubectl version
):Client Version: v1.30.5+vmware.3-fips
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.30.5+vmware.3-fips
cat /etc/os-release
): Photon 5The text was updated successfully, but these errors were encountered: