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

[v12] Add option to override kube context on tsh kube login #25253

Merged
merged 1 commit into from Apr 28, 2023

Conversation

tigrato
Copy link
Contributor

@tigrato tigrato commented Apr 27, 2023

Backport #24972 to branch/v12

This PR allows users to change the kubeconfig's context name when `tsh
kube login` is executed.

It allows users to override our default naming convention
`{teleport-cluster}-{kube-cluster}` and replace it with a custom name.

`tsh kube login cluster --set-context-name=ctx` overrides the context
name to `ctx`. `--set-context` cannot be executed with `--all`.

Fixes #12833
@github-actions github-actions bot added backport kubernetes-access size/sm tsh tsh - Teleport's command line tool for logging into nodes running Teleport. labels Apr 27, 2023
@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from xacrimon April 28, 2023 15:38
@tigrato tigrato added this pull request to the merge queue Apr 28, 2023
Merged via the queue into branch/v12 with commit a958d67 Apr 28, 2023
18 checks passed
@tigrato tigrato deleted the bot/backport-24972-branch/v12 branch April 28, 2023 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport kubernetes-access size/sm tsh tsh - Teleport's command line tool for logging into nodes running Teleport.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants