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

Switch exec pod promise to reject on websocket error #127

Merged
merged 4 commits into from
Feb 5, 2024

Conversation

nikola-jokic
Copy link
Contributor

Exec returns a websocket. If websocket fails, we should reject the promise. Otherwise, websocket will call a callback. Since at that point, websocket is not failing, we can safely resolve or reject the promise.

Fixes #107

@nikola-jokic nikola-jokic requested review from a team as code owners December 29, 2023 14:21
fhammerl
fhammerl previously approved these changes Feb 5, 2024
Copy link
Contributor

@fhammerl fhammerl left a comment

Choose a reason for hiding this comment

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

LGTM

Co-authored-by: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Copy link
Contributor

@fhammerl fhammerl left a comment

Choose a reason for hiding this comment

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

LGTM

@nikola-jokic nikola-jokic merged commit 50e14cf into main Feb 5, 2024
3 checks passed
@nikola-jokic nikola-jokic deleted the nikola-jokic/exec-pod-promise branch February 5, 2024 13:40
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.

Rejections from k8s.Exec.exec() are not handled
2 participants