Skip to content

[v17] Add reason and invited fields to SessionStartEvent#51175

Merged
rosstimothy merged 1 commit intobranch/v17from
tross/backport-51070/v17
Jan 20, 2025
Merged

[v17] Add reason and invited fields to SessionStartEvent#51175
rosstimothy merged 1 commit intobranch/v17from
tross/backport-51070/v17

Conversation

@rosstimothy
Copy link
Copy Markdown
Contributor

Backport #51070 to branch/v17

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

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.
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.

@rosstimothy rosstimothy marked this pull request as ready for review January 17, 2025 15:17
@rosstimothy rosstimothy enabled auto-merge January 17, 2025 15:17
@github-actions github-actions Bot requested review from Tener, r0mant and tigrato January 17, 2025 15:17
@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
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from r0mant January 20, 2025 08:30
@rosstimothy rosstimothy added this pull request to the merge queue Jan 20, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jan 20, 2025
@rosstimothy rosstimothy added this pull request to the merge queue Jan 20, 2025
Merged via the queue into branch/v17 with commit ba4f066 Jan 20, 2025
@rosstimothy rosstimothy deleted the tross/backport-51070/v17 branch January 20, 2025 12:12
@camscale camscale mentioned this pull request Jan 22, 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