mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
Merge pull request #47293 from superbrothers/fix-completion
Automatic merge from submit-queue Fix missing __kubectl_parse_config **What this PR does / why we need it**: This PR fixes the broken completion of kubectl config use-context. I checked that the completions of kubectl config use-context, --user and --cluster work correctly. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #29386 **Special notes for your reviewer**: @pwittrock @janetkuo **Release note**: ```release-note NONE ```
This commit is contained in:
commit
208c25381f
@ -92,7 +92,7 @@ __kubectl_config_get_users()
|
||||
}
|
||||
|
||||
# $1 has to be "contexts", "clusters" or "users"
|
||||
__kubectl_config_get()
|
||||
__kubectl_parse_config()
|
||||
{
|
||||
local template kubectl_out
|
||||
template="{{ range .$1 }}{{ .name }} {{ end }}"
|
||||
|
Loading…
Reference in New Issue
Block a user