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

Refactor non-interactive sessions out of proxy/sess.go #12497

Merged
merged 8 commits into from
May 10, 2022

Conversation

xacrimon
Copy link
Contributor

@xacrimon xacrimon commented May 6, 2022

We currently handle both noninteractive sessions and interactive ones in the same code, this is quite messy and prone to error since you constantly need to be aware and add checks where appropriate. As noninteractive sessions are vastly simpler to implement and do not support moderation, I feel we're better served by a freestanding handler for these requests.

EDIT: Turns out this also fixes #12229 and #12292. Not sure when the issue causing them appeared, but this fixes it. This has been manually tested and k8s tests now pass. As it turns out, they previously didn't pass (not all of them, the non interactive exec failed).

note: This happened sometime after v9 but we don't run k8s tests in CI so it's hard to pinpoint where. We should look into running k8s tests in CI to catch k8s regressions since they're a lot of work to run locally each time.

@xacrimon xacrimon marked this pull request as ready for review May 9, 2022 16:51
@github-actions github-actions bot requested review from lxea and r0mant May 9, 2022 16:52
@xacrimon xacrimon force-pushed the joel/refactor-kube-sess branch from 8950319 to 27ae249 Compare May 9, 2022 17:42
@xacrimon xacrimon linked an issue May 9, 2022 that may be closed by this pull request
@xacrimon xacrimon merged commit bc09235 into master May 10, 2022
@github-actions
Copy link

@xacrimon See the table below for backport results.

Branch Result
branch/v9 Create PR

@zmb3 zmb3 deleted the joel/refactor-kube-sess branch April 26, 2023 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kubectl exec timeouting if executed without -ti v9 breaks kubectl cp
4 participants