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

[v13] Add support for templating to kube's --set-context-override #30157

Merged
merged 1 commit into from Aug 8, 2023

Conversation

tigrato
Copy link
Contributor

@tigrato tigrato commented Aug 8, 2023

Backport #29968 to branch/v13

* Add support for templating to kube's `--set-context-override`

This PR adds templating support for `tsh kube login --set-context-name`.
This allows executing `tsh kube login --all
--set-context-name="{{.KubeName}}` to generate a kube config with every
cluster the user has access to but without the Teleport's cluster name
prefix.

Changelog: Extend `tsh kube login --set-context-name` to support
templating functions.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>

* rename function

---------

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
@github-actions github-actions bot added backport kubernetes-access size/md tsh tsh - Teleport's command line tool for logging into nodes running Teleport. labels Aug 8, 2023
@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from Joerger August 8, 2023 10:34
@tigrato tigrato added this pull request to the merge queue Aug 8, 2023
Merged via the queue into branch/v13 with commit 514bcc5 Aug 8, 2023
21 checks passed
@tigrato tigrato deleted the tigrato/backport-29968-branch-v13 branch August 8, 2023 11:06
@fheinecke fheinecke mentioned this pull request Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport kubernetes-access size/md 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