• Kubernetes Submit Queue's avatar
    Merge pull request #48340 from superbrothers/completions-config-rename-context · 81631ece
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 55268, 55282, 55419, 48340, 54829). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
    
    Support completions for kubectl config rename-context
    
    **What this PR does / why we need it**:
    With this PR, kubectl config rename-context supports completion for current context.
    ```
    $ kubectl config rename-context <tab>
    cluster01  minikube
    ```
    
    **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
    
    **Special notes for your reviewer**:
    
    **Release note**:
    
    ```release-note
    Support completion for kubectl config rename-context
    ```
    81631ece
cmd.go 10.6 KB