-
Notifications
You must be signed in to change notification settings - Fork 14k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update docs to reflect newly support shells with autocompletions #29610
Update docs to reflect newly support shells with autocompletions #29610
Conversation
* Update Windows docs to use Powershell instead of zsh
Welcome @zikhan! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the PR!
content/en/docs/tasks/tools/included/optional-kubectl-configs-pwsh.md
Outdated
Show resolved
Hide resolved
adding a /lgtm despite my membership still pending |
/hold |
I appreciated @zikhan s comment that the existing instructions are quite outdated. How about we wrap the new instructions with some sort of version flag? Could you use the newest version of kubectl be used with existing clusters on an older version? I think so, as a novice, but we may not want to recommend this behavior. |
I'm not sure about the branch logistics but powershell and fish won't ship until 1.23 so shouldn't be live before then. |
that answers my question, thank you! /milestone 1.23 the hold can be lifted by a reviewer from docs release whenever it's done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I proposed some capitalization corrections. Also needs a tech LGTM, which is essentially confirming that the code does offer these completions (and so, should be easy to find).
content/en/docs/tasks/tools/included/optional-kubectl-configs-pwsh.md
Outdated
Show resolved
Hide resolved
content/en/docs/tasks/tools/included/optional-kubectl-configs-pwsh.md
Outdated
Show resolved
Hide resolved
content/en/docs/tasks/tools/included/optional-kubectl-configs-pwsh.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Tim Bannister <tim@scalefactory.com>
@sftim I've made the changes you've proposed. |
I have verified the instructions work on Windows Server 2019 and kubectl built from k/k/main /lgtm |
LGTM label has been added. Git tree hash: e0d48fbbfbf5f3c136ea364e7705ec875f8434cc
|
/label tide/merge-method-squash |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tengqm The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/hold cancel
@zikhan: if you want to, you can open an extra PR to mention the PowerShell autocomplete on macOS and Linux (I think that would be a good idea).
@@ -176,7 +176,7 @@ kubectl version --client | |||
|
|||
### Enable shell autocompletion | |||
|
|||
kubectl provides autocompletion support for Bash and Zsh, which can save you a lot of typing. | |||
kubectl provides autocompletion support for Bash, Zsh, Fish, and PowerShell, which can save you a lot of typing. | |||
|
|||
Below are the procedures to set up autocompletion for Bash and Zsh. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- We could also add a tab here for PowerShell.
- As these are third party tools, if we do, I would add the PowerShell tab before Zsh.
@@ -159,7 +159,7 @@ If you are on macOS and using [Macports](https://macports.org/) package manager, | |||
|
|||
### Enable shell autocompletion | |||
|
|||
kubectl provides autocompletion support for Bash and Zsh, which can save you a lot of typing. | |||
kubectl provides autocompletion support for Bash, Zsh, Fish, and PowerShell which can save you a lot of typing. | |||
|
|||
Below are the procedures to set up autocompletion for Bash and Zsh. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- We could also add a tab here for PowerShell.
- As these are third party tools, if we do, I would add the PowerShell tab before Zsh.
…ernetes#29610) * Update docs to reflect newly support shells with autocompletions * Update Windows docs to use Powershell instead of zsh * Adds a bit more explanation of the different lines. * Apply suggestions from code review Co-authored-by: Tim Bannister <tim@scalefactory.com> * Apply PR suggestions Co-authored-by: Tim Bannister <tim@scalefactory.com>
…ernetes#29610) * Update docs to reflect newly support shells with autocompletions * Update Windows docs to use Powershell instead of zsh * Adds a bit more explanation of the different lines. * Apply suggestions from code review Co-authored-by: Tim Bannister <tim@scalefactory.com> * Apply PR suggestions Co-authored-by: Tim Bannister <tim@scalefactory.com>
…ernetes#29610) * Update docs to reflect newly support shells with autocompletions * Update Windows docs to use Powershell instead of zsh * Adds a bit more explanation of the different lines. * Apply suggestions from code review Co-authored-by: Tim Bannister <tim@scalefactory.com> * Apply PR suggestions Co-authored-by: Tim Bannister <tim@scalefactory.com>
…ernetes#29610) * Update docs to reflect newly support shells with autocompletions * Update Windows docs to use Powershell instead of zsh * Adds a bit more explanation of the different lines. * Apply suggestions from code review Co-authored-by: Tim Bannister <tim@scalefactory.com> * Apply PR suggestions Co-authored-by: Tim Bannister <tim@scalefactory.com>
…ernetes#29610) * Update docs to reflect newly support shells with autocompletions * Update Windows docs to use Powershell instead of zsh * Adds a bit more explanation of the different lines. * Apply suggestions from code review Co-authored-by: Tim Bannister <tim@scalefactory.com> * Apply PR suggestions Co-authored-by: Tim Bannister <tim@scalefactory.com>
…ernetes#29610) * Update docs to reflect newly support shells with autocompletions * Update Windows docs to use Powershell instead of zsh * Adds a bit more explanation of the different lines. * Apply suggestions from code review Co-authored-by: Tim Bannister <tim@scalefactory.com> * Apply PR suggestions Co-authored-by: Tim Bannister <tim@scalefactory.com>
…ernetes#29610) * Update docs to reflect newly support shells with autocompletions * Update Windows docs to use Powershell instead of zsh * Adds a bit more explanation of the different lines. * Apply suggestions from code review Co-authored-by: Tim Bannister <tim@scalefactory.com> * Apply PR suggestions Co-authored-by: Tim Bannister <tim@scalefactory.com>
Reflect changes made in kubernetes/kubernetes#103758 & kubernetes/kubernetes#92989
I'm not well versed in fish, so I'll leave that part for someone else to get an easy contribution in.