Skip to content
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

Merged

Conversation

zikhan
Copy link
Contributor

@zikhan zikhan commented Sep 3, 2021

  • Update Windows docs to use Powershell instead of zsh

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.

* Update Windows docs to use Powershell instead of zsh
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Sep 3, 2021
@k8s-ci-robot
Copy link
Contributor

Welcome @zikhan!

It looks like this is your first PR to kubernetes/website 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes/website has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Sep 3, 2021
@k8s-ci-robot k8s-ci-robot added language/en Issues or PRs related to English language sig/docs Categorizes an issue or PR as relevant to SIG Docs. labels Sep 3, 2021
Copy link
Contributor

@geoffcline geoffcline left a 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!

@geoffcline
Copy link
Contributor

adding a /lgtm despite my membership still pending

@PI-Victor
Copy link
Member

/hold
is this really supposed to be open against dev-1.23?
/cc @jlbutler

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 9, 2021
@geoffcline
Copy link
Contributor

geoffcline commented Sep 9, 2021

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.

@eddiezane
Copy link
Member

/hold
is this really supposed to be open against dev-1.23?
/cc @jlbutler

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.

@PI-Victor
Copy link
Member

/hold

is this really supposed to be open against dev-1.23?

/cc @jlbutler

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

@k8s-ci-robot k8s-ci-robot added this to the 1.23 milestone Sep 9, 2021
Copy link
Contributor

@sftim sftim left a 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).

zikhan and others added 2 commits September 10, 2021 09:36
Co-authored-by: Tim Bannister <tim@scalefactory.com>
@zikhan
Copy link
Contributor Author

zikhan commented Sep 10, 2021

I proposed some capitalization corrections. ...

@sftim I've made the changes you've proposed.

@geoffcline
Copy link
Contributor

I have verified the instructions work on Windows Server 2019 and kubectl built from k/k/main

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 10, 2021
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: e0d48fbbfbf5f3c136ea364e7705ec875f8434cc

@tengqm
Copy link
Contributor

tengqm commented Sep 12, 2021

/label tide/merge-method-squash

@k8s-ci-robot k8s-ci-robot added the tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. label Sep 12, 2021
@tengqm
Copy link
Contributor

tengqm commented Sep 12, 2021

/approve

@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 12, 2021
Copy link
Contributor

@sftim sftim left a 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.
Copy link
Contributor

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.
Copy link
Contributor

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.

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 12, 2021
@k8s-ci-robot k8s-ci-robot merged commit c189c2d into kubernetes:dev-1.23 Sep 12, 2021
verult pushed a commit to verult/kubernetes.github.io that referenced this pull request Nov 11, 2021
…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>
cici37 pushed a commit to jpbetz/website that referenced this pull request Nov 15, 2021
…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>
trierra pushed a commit to trierra/website that referenced this pull request Nov 16, 2021
…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>
trierra pushed a commit to trierra/website that referenced this pull request Nov 16, 2021
…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>
trierra pushed a commit to trierra/website that referenced this pull request Nov 16, 2021
…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>
trierra pushed a commit to trierra/website that referenced this pull request Nov 16, 2021
…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>
trierra pushed a commit to trierra/website that referenced this pull request Nov 29, 2021
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. language/en Issues or PRs related to English language lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/docs Categorizes an issue or PR as relevant to SIG Docs. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants