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

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

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

rosstimothy
Copy link
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
@@ -434,6 +435,7 @@ func newKubeExecCommand(parent *kingpin.CmdClause) *kubeExecCommand {
}

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
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 r0mant, Tener 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
39 checks passed
@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