Skip to content

[v15] Add reason and invited fields to SessionStartEvent#51177

Merged
rosstimothy merged 1 commit intobranch/v15from
tross/backport-51070/v15
Jan 20, 2025
Merged

[v15] Add reason and invited fields to SessionStartEvent#51177
rosstimothy merged 1 commit intobranch/v15from
tross/backport-51070/v15

Conversation

@rosstimothy
Copy link
Copy Markdown
Contributor

Backport #51070 to branch/v15

Changelog: Include invited and reason fields in SessionStartEvents
Changelog: Add a flag to tsh kube exec to allow specifying the namespace outside of the Kubernetes context

@rosstimothy rosstimothy changed the title Add reason and invited fields to SessionStartEvent [v15] Add reason and invited fields to SessionStartEvent Jan 17, 2025
Comment thread tool/tsh/common/kube.go
}

c.Flag("container", "Container name. If omitted, use the kubectl.kubernetes.io/default-container annotation for selecting the container to be attached or the first container in the pod will be chosen").Short('c').StringVar(&c.container)
c.Flag("kube-namespace", "Configure the default Kubernetes namespace.").Short('n').StringVar(&c.namespace)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: the namespace flag is intentionally omitted since #51076 will not be backported.

In addition to adding the new fields and populating them, this
also updates tsh kube exec to include a --kube-namespace flag similar
to tsh kube login to make the command easier and more intuitive to use.

Closes #51019.
@rosstimothy rosstimothy force-pushed the tross/backport-51070/v15 branch from cbb0e56 to 6da90c9 Compare January 17, 2025 15:19
@rosstimothy rosstimothy marked this pull request as ready for review January 17, 2025 15:31
@github-actions github-actions Bot added kubernetes-access size/sm tsh tsh - Teleport's command line tool for logging into nodes running Teleport. labels Jan 17, 2025
@github-actions github-actions Bot requested review from Tener, r0mant and tigrato January 17, 2025 15:31
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from r0mant January 20, 2025 08:31
@rosstimothy rosstimothy added this pull request to the merge queue Jan 20, 2025
Merged via the queue into branch/v15 with commit 1dc4b52 Jan 20, 2025
@rosstimothy rosstimothy deleted the tross/backport-51070/v15 branch January 20, 2025 12:14
@camscale camscale mentioned this pull request Jan 21, 2025
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