Skip to content

Make ssh setup work with interactive cluster selection#5207

Open
rclarey wants to merge 1 commit intomainfrom
ssh-setup-cluster-interactive
Open

Make ssh setup work with interactive cluster selection#5207
rclarey wants to merge 1 commit intomainfrom
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
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