Skip to content

Commit

Permalink
Update the helm command in the tctl tokens add output (#50695)
Browse files Browse the repository at this point in the history
This ensures that the advice tctl prints will work with the current
version of the Teleport cluster.

Closes #50317
  • Loading branch information
zmb3 authored Jan 2, 2025
1 parent e594067 commit 8c3b26f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tool/tctl/common/kube_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,11 @@ helm repo update
--set proxyAddr={{.auth_server}} \
--set authToken={{.token}} \
--create-namespace \
--namespace=teleport-agent
--namespace=teleport-agent \
--version={{.version}}
Please note:
- This invitation token will expire in {{.minutes}} minutes.
- {{.auth_server}} must be reachable from Kubernetes cluster.
- The token is usable in a standalone Linux server with kubernetes_service.
Expand Down
1 change: 1 addition & 0 deletions tool/tctl/common/token_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ func (c *TokensCommand) Add(ctx context.Context, client *authclient.Client) erro
"token": token,
"minutes": c.ttl.Minutes(),
"set_roles": setRoles,
"version": proxies[0].GetTeleportVersion(),
})
case roles.Include(types.RoleApp):
proxies, err := client.GetProxies()
Expand Down

0 comments on commit 8c3b26f

Please sign in to comment.