Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fall back to SPDY for exec if WebSockets aren't supported #2

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

markgoddard
Copy link
Contributor

@markgoddard markgoddard commented Nov 13, 2024

If using cofidectl with an older (pre 1.31.0) k8s cluster, it may fail
to exec into the spire-server container. This is because websockets are
behind a default false feature gate until 1.31.0, and unsupported before
1.29.0.

This change fixes the issue using a fallback executor, adapted from the
exec code in kubectl. It will try to use websockets, then fall back to
SPDY if unavailable.

Fixes: #3

If using cofidectl with an older (pre 1.31.0) k8s cluster, it may fail
to exec into the spire-server container. This is because websockets are
behind a default false feature gate until 1.31.0, and unsupported before
1.29.0.

This change fixes the issue using a fallback executor, adapted from the
exec code in kubectl. It will try to use websockets, then fall back to
SPDY if unavailable.

Fixes: #120
@markgoddard markgoddard self-assigned this Nov 13, 2024
@markgoddard markgoddard linked an issue Nov 13, 2024 that may be closed by this pull request
@markgoddard markgoddard added this to the release-0.6.0 milestone Nov 13, 2024
Copy link
Contributor

@nialdaly nialdaly left a comment

Choose a reason for hiding this comment

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

Looks good! 👍

@markgoddard markgoddard merged commit 1d3c0ed into main Nov 14, 2024
3 checks passed
@markgoddard markgoddard deleted the issues/120 branch November 14, 2024 09:08
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.

Fall back to SPDY for exec when websockets aren't supported
2 participants