Skip to content

Conversation

nikola-jokic
Copy link
Collaborator

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

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
@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