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

fix(k8s): retry websocket errors #5755

Merged
merged 1 commit into from
Feb 20, 2024
Merged

fix(k8s): retry websocket errors #5755

merged 1 commit into from
Feb 20, 2024

Conversation

stefreak
Copy link
Member

@stefreak stefreak commented Feb 20, 2024

What this PR does / why we need it:

We failed retrying WebsocketError during Pod exec operations, because the regex "WebsocketError: Unexpected server response" did not match
anymore after we refactored toKubernetesError, because the formatting
changed.

Let's retry if just the name WebsocketError appears in the message.

Which issue(s) this PR fixes:

Fixes #5729

Special notes for your reviewer:

Fixes #5729

We failed retrying WebsocketError during Pod exec operations, because the regex "WebsocketError: Unexpected server response" did not match
anymore after we refactored toKubernetesError, because the formatting
cahnged.

Let's retry if just the name WebsocketError appears in the message.
Copy link
Collaborator

@vvagaytsev vvagaytsev left a comment

Choose a reason for hiding this comment

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

Thank you! 🚀

@vvagaytsev vvagaytsev added this pull request to the merge queue Feb 20, 2024
Merged via the queue into main with commit c8b88c4 Feb 20, 2024
43 checks passed
@vvagaytsev vvagaytsev deleted the retry-kubernetes-exec branch February 20, 2024 11:58
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.

Crash Report: Error while performing Kubernetes API operation Pod exec: WebsocketError
2 participants