Skip to content

Fix port forwarding when using a label based target#26394

Merged
rosstimothy merged 1 commit intomasterfrom
tross/fix_label_forwarding
May 22, 2023
Merged

Fix port forwarding when using a label based target#26394
rosstimothy merged 1 commit intomasterfrom
tross/fix_label_forwarding

Conversation

@rosstimothy
Copy link
Copy Markdown
Contributor

Label based connections that do not provide a command and open a shell for the first match were only performing a portion of the logic that non label based interactive sessions were. Instead of connecting directly to a host and opening a session, tc.runShellOrCommandOnSingleNode is called to achieve the same behavior as non label based connections.

In addition to fixing #23261 this should also add support for -N in the same scenario.

@rosstimothy rosstimothy marked this pull request as ready for review May 16, 2023 22:22
@github-actions github-actions Bot requested review from kimlisa and r0mant May 16, 2023 22:22
Label based connections that do not provide a command and open a
shell for the first match were only performing a portion of the logic
that non label based interactive sessions were. Instead of connecting
directly to a host and opening a session, `tc.runShellOrCommandOnSingleNode`
is called to achieve the same behavior as non label based connections.

In addition to fixing #23261 this should also add support for `-N` in
the same scenario.
@rosstimothy rosstimothy force-pushed the tross/fix_label_forwarding branch from d176c01 to 4274b39 Compare May 18, 2023 19:42
@rosstimothy
Copy link
Copy Markdown
Contributor Author

Friendly ping @r0mant @kimlisa

@rosstimothy rosstimothy enabled auto-merge May 22, 2023 15:37
@rosstimothy rosstimothy added this pull request to the merge queue May 22, 2023
Merged via the queue into master with commit 96f8c17 May 22, 2023
@rosstimothy rosstimothy deleted the tross/fix_label_forwarding branch May 22, 2023 16:31
@public-teleport-github-review-bot
Copy link
Copy Markdown

@rosstimothy See the table below for backport results.

Branch Result
branch/v11 Failed
branch/v12 Failed
branch/v13 Create PR

rosstimothy added a commit that referenced this pull request May 22, 2023
Label based connections that do not provide a command and open a
shell for the first match were only performing a portion of the logic
that non label based interactive sessions were. Instead of connecting
directly to a host and opening a session, `tc.runShellOrCommandOnSingleNode`
is called to achieve the same behavior as non label based connections.

In addition to fixing #23261 this should also add support for `-N` in
the same scenario.
rosstimothy added a commit that referenced this pull request May 22, 2023
Label based connections that do not provide a command and open a
shell for the first match were only performing a portion of the logic
that non label based interactive sessions were. Instead of connecting
directly to a host and opening a session, `tc.runShellOrCommandOnSingleNode`
is called to achieve the same behavior as non label based connections.

In addition to fixing #23261 this should also add support for `-N` in
the same scenario.
rosstimothy added a commit that referenced this pull request May 22, 2023
Label based connections that do not provide a command and open a
shell for the first match were only performing a portion of the logic
that non label based interactive sessions were. Instead of connecting
directly to a host and opening a session, `tc.runShellOrCommandOnSingleNode`
is called to achieve the same behavior as non label based connections.

In addition to fixing #23261 this should also add support for `-N` in
the same scenario.
rosstimothy added a commit that referenced this pull request May 22, 2023
Label based connections that do not provide a command and open a
shell for the first match were only performing a portion of the logic
that non label based interactive sessions were. Instead of connecting
directly to a host and opening a session, `tc.runShellOrCommandOnSingleNode`
is called to achieve the same behavior as non label based connections.

In addition to fixing #23261 this should also add support for `-N` in
the same scenario.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants