Skip to content

[v13] Add option to override kube context on tsh kube login#25252

Merged
tigrato merged 1 commit intobranch/v13from
bot/backport-24972-branch/v13
Apr 28, 2023
Merged

[v13] Add option to override kube context on tsh kube login#25252
tigrato merged 1 commit intobranch/v13from
bot/backport-24972-branch/v13

Conversation

@tigrato
Copy link
Copy Markdown
Contributor

@tigrato tigrato commented Apr 27, 2023

Backport #24972 to branch/v13

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
@github-actions github-actions Bot requested review from nklaassen and xacrimon April 27, 2023 10:26
@tigrato tigrato enabled auto-merge April 28, 2023 15:38
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from xacrimon April 28, 2023 15:39
@tigrato tigrato added this pull request to the merge queue Apr 28, 2023
Merged via the queue into branch/v13 with commit cf38dbe Apr 28, 2023
@tigrato tigrato deleted the bot/backport-24972-branch/v13 branch April 28, 2023 16:07
@r0mant r0mant mentioned this pull request Jul 14, 2023
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.

3 participants