• Kubernetes Submit Queue's avatar
    Merge pull request #30460 from… · a4acf087
    Kubernetes Submit Queue authored
    Merge pull request #30460 from juanvallejo/jvallejo_kube-add-zsh-compatibility-note-kubectl-completion
    
    Automatic merge from submit-queue
    
    Add zsh compatibility note `completion` cmd help
    
    zsh completions are not supported on zsh versions < 5.2.
    
    This patch advices user on supported versions of zsh when using the `completion`
    command to avoid potential UX failure.
    
    ##### After
    `$ kubectl completion -h`
    ```
    Output shell completion code for the given shell (bash or zsh).
    
    This command prints shell code which must be evaluation to provide interactive
    completion of kubectl commands.
    
    Examples:
    
    $ source <(kubectl completion bash)
    
    will load the kubectl completion code for bash. Note that this depends on the
    bash-completion framework. It must be sourced before sourcing the kubectl
    completion, e.g. on the Mac:
    
    $ brew install bash-completion
    $ source $(brew --prefix)/etc/bash_completion
    $ source <(kubectl completion bash)
    
    If you use zsh*, the following will load kubectl zsh completion:
    
    $ source <(kubectl completion zsh)
    
    * zsh completions are only supported in versions of zsh >= 5.2
    ```
    
    ```release-note
    release-note-none
    ```
    
    <!-- Reviewable:start -->
    ---
    This change is [<img src="https://reviewable.kubernetes.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.kubernetes.io/reviews/kubernetes/kubernetes/30460)
    <!-- Reviewable:end -->
    a4acf087
Name
Last commit
Last update
..
cmd Loading commit data...
metricsutil Loading commit data...
resource Loading commit data...
testing Loading commit data...
OWNERS Loading commit data...
apply.go Loading commit data...
autoscale.go Loading commit data...
bash_comp_utils.go Loading commit data...
configmap.go Loading commit data...
configmap_test.go Loading commit data...
custom_column_printer.go Loading commit data...
custom_column_printer_test.go Loading commit data...
deployment.go Loading commit data...
deployment_test.go Loading commit data...
describe.go Loading commit data...
describe_test.go Loading commit data...
doc.go Loading commit data...
explain.go Loading commit data...
generate.go Loading commit data...
generate_test.go Loading commit data...
history.go Loading commit data...
interfaces.go Loading commit data...
kubectl.go Loading commit data...
kubectl_test.go Loading commit data...
namespace.go Loading commit data...
namespace_test.go Loading commit data...
proxy_server.go Loading commit data...
proxy_server_test.go Loading commit data...
quota.go Loading commit data...
quota_test.go Loading commit data...
resource_printer.go Loading commit data...
resource_printer_test.go Loading commit data...
rollback.go Loading commit data...
rolling_updater.go Loading commit data...
rolling_updater_test.go Loading commit data...
rollout_status.go Loading commit data...
run.go Loading commit data...
run_test.go Loading commit data...
scale.go Loading commit data...
scale_test.go Loading commit data...
secret.go Loading commit data...
secret_for_docker_registry.go Loading commit data...
secret_for_docker_registry_test.go Loading commit data...
secret_for_tls.go Loading commit data...
secret_for_tls_test.go Loading commit data...
secret_test.go Loading commit data...
service.go Loading commit data...
service_basic.go Loading commit data...
service_basic_test.go Loading commit data...
service_test.go Loading commit data...
serviceaccount.go Loading commit data...
serviceaccount_test.go Loading commit data...
sorted_event_list.go Loading commit data...
sorted_event_list_test.go Loading commit data...
sorted_resource_name_list.go Loading commit data...
sorted_resource_name_list_test.go Loading commit data...
sorting_printer.go Loading commit data...
sorting_printer_test.go Loading commit data...
stop.go Loading commit data...
stop_test.go Loading commit data...
version.go Loading commit data...
watchloop.go Loading commit data...