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

Pass context to kube.Exec and similar functions. #25703 #249

Merged
merged 3 commits into from
Jun 4, 2024

Conversation

e-sumin
Copy link
Contributor

@e-sumin e-sumin commented May 9, 2024

Currently, commands executed in pods are not aware of context state, and if context is cancelled they are still running.
This PR changes K10 code so that context is always passed to any kind of kube.Exec method.

There is related Kanister PR kanisterio/kanister#2878 which contains passing context right to the Kubernetes Executor.StreamWithContext which states "The context controls the entire lifetime of stream execution."

@e-sumin e-sumin requested review from mabhi and pavannd1 May 9, 2024 19:48
@e-sumin
Copy link
Contributor Author

e-sumin commented May 9, 2024

Go version bumped due to Kanister requirements.

@e-sumin
Copy link
Contributor Author

e-sumin commented May 9, 2024

TMP commit refers proper Kanister revision. Should be removed before merging.

PR should be merged only after Kanister one will be merged.

@e-sumin e-sumin force-pushed the pass-context-to-kube-exec branch 2 times, most recently from d631721 to 67b1aa0 Compare May 9, 2024 20:07
@e-sumin e-sumin force-pushed the pass-context-to-kube-exec branch from 67b1aa0 to 9b1188f Compare June 4, 2024 10:40
@julio-lopez julio-lopez merged commit 3843452 into master Jun 4, 2024
4 checks passed
@julio-lopez julio-lopez deleted the pass-context-to-kube-exec branch June 4, 2024 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants