Skip to content

Remove any notion of teleport namespace from tsh#51076

Merged
rosstimothy merged 1 commit intomasterfrom
tross/tsh_namespace
Jan 15, 2025
Merged

Remove any notion of teleport namespace from tsh#51076
rosstimothy merged 1 commit intomasterfrom
tross/tsh_namespace

Conversation

@rosstimothy
Copy link
Copy Markdown
Contributor

@rosstimothy rosstimothy commented Jan 15, 2025

Updates #49509.

Most of the places namespaces were already configurable were had been forcing the default namespace. This extends that by removing the ability to pass in a custom namespace and hardcodes the default namespace at the inner most call site to reduce the surface area of namespaces.

With the removal of the --namespace flag from the base tsh command, kubernetes subcommands have also been updated to use --namespaces in addition to --kube-namespace. The former should be preferred, while the later exists solely for backward compatibility.

@rosstimothy rosstimothy marked this pull request as ready for review January 15, 2025 17:40
@github-actions github-actions Bot added size/sm tsh tsh - Teleport's command line tool for logging into nodes running Teleport. labels Jan 15, 2025
@rosstimothy rosstimothy added the no-changelog Indicates that a PR does not require a changelog entry label Jan 15, 2025
Comment thread lib/client/client.go
Comment thread tool/tsh/common/kube.go
Updates #49509.

Most of the places namespaces were already configurable were had
been forcing the default namespace. This extends that by removing
the ability to pass in a custom namesapce and hardcodes the
default namespace at the inner most call site to reduce the surface
area of namespaces.

With the removal of the --namespace flag from the base tsh command,
kubernetes subcommands have also been updated to use --namespaces
in addition to --kube-namespace. The former should be preferred,
while the later exists solely for backward compatibility.
@rosstimothy rosstimothy enabled auto-merge January 15, 2025 18:55
@rosstimothy rosstimothy added this pull request to the merge queue Jan 15, 2025
Merged via the queue into master with commit 063603a Jan 15, 2025
@rosstimothy rosstimothy deleted the tross/tsh_namespace branch January 15, 2025 19:32
mvbrock pushed a commit that referenced this pull request Jan 18, 2025
Updates #49509.

Most of the places namespaces were already configurable were had
been forcing the default namespace. This extends that by removing
the ability to pass in a custom namesapce and hardcodes the
default namespace at the inner most call site to reduce the surface
area of namespaces.

With the removal of the --namespace flag from the base tsh command,
kubernetes subcommands have also been updated to use --namespaces
in addition to --kube-namespace. The former should be preferred,
while the later exists solely for backward compatibility.
carloscastrojumo pushed a commit to carloscastrojumo/teleport that referenced this pull request Feb 19, 2025
Updates gravitational#49509.

Most of the places namespaces were already configurable were had
been forcing the default namespace. This extends that by removing
the ability to pass in a custom namesapce and hardcodes the
default namespace at the inner most call site to reduce the surface
area of namespaces.

With the removal of the --namespace flag from the base tsh command,
kubernetes subcommands have also been updated to use --namespaces
in addition to --kube-namespace. The former should be preferred,
while the later exists solely for backward compatibility.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog Indicates that a PR does not require a changelog entry 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