Skip to content

Make ssh setup work with interactive cluster selection#5207

Merged
rclarey merged 2 commits into
mainfrom
ssh-setup-cluster-interactive
May 11, 2026
Merged

Make ssh setup work with interactive cluster selection#5207
rclarey merged 2 commits into
mainfrom
ssh-setup-cluster-interactive

Conversation

@rclarey
Copy link
Copy Markdown
Contributor

@rclarey rclarey commented May 7, 2026

Changes

Move the creation of proxyCommand to after interactive cluster selection

Why

Before proxyCommand was created before interactive cluster selection, meaning we would output a broken proxy command in the generate SSH config. Moving creation of proxyCommand to after interactive cluster selection means the selected cluster is properly populated in the generated SSH config

Tests

Added test

@rclarey rclarey temporarily deployed to test-trigger-is May 7, 2026 10:05 — with GitHub Actions Inactive
@rclarey rclarey temporarily deployed to test-trigger-is May 7, 2026 10:05 — with GitHub Actions Inactive
Copy link
Copy Markdown
Contributor

@anton-107 anton-107 left a comment

Choose a reason for hiding this comment

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

Fix is correct and well-scoped — moving ToProxyCommand() after the cluster picker resolves the empty --cluster= flag bug.

One nit: TestSetup_PromptsForClusterWhenNotProvided reads as "verifies the picker runs," but the load-bearing assertion is that the picked ID flows into the proxy command. Something like TestSetup_PickedClusterFlowsIntoProxyCommand describes the regression more precisely. Non-blocking.

@rclarey rclarey enabled auto-merge May 7, 2026 10:58
@rclarey rclarey temporarily deployed to test-trigger-is May 11, 2026 07:59 — with GitHub Actions Inactive
@rclarey rclarey temporarily deployed to test-trigger-is May 11, 2026 07:59 — with GitHub Actions Inactive
@rclarey rclarey disabled auto-merge May 11, 2026 10:01
@rclarey rclarey merged commit dc81fe9 into main May 11, 2026
19 of 20 checks passed
@rclarey rclarey deleted the ssh-setup-cluster-interactive branch May 11, 2026 10:04
denik pushed a commit that referenced this pull request May 20, 2026
## Changes

Move the creation of `proxyCommand` to _after_ interactive cluster
selection

## Why

Before `proxyCommand` was created before interactive cluster selection,
meaning we would output a broken proxy command in the generate SSH
config. Moving creation of `proxyCommand` to after interactive cluster
selection means the selected cluster is properly populated in the
generated SSH config

## Tests

Added test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants