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: avoid crash during kubectl retry #5098

Merged
merged 2 commits into from Sep 16, 2023
Merged

fix: avoid crash during kubectl retry #5098

merged 2 commits into from Sep 16, 2023

Conversation

stefreak
Copy link
Member

@stefreak stefreak commented Sep 15, 2023

What this PR does / why we need it:

  • fix: use forceRetry when using requestWithRetry with kubectl command
  • fix: use correct manifest loglevel in the error message

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

This is needed because toKubernetesError does not know (and should not
know) how to deal with a ChildProcessError.

When using requestWithRetry for anything other than Kubernetes requests,
forceRetry needs to be true.

It's questionable if we should use requestWithRetry at all or we should
rather resort to pRetry directly.
@stefreak stefreak changed the title fix kubectl retry fix: kubectl retry Sep 15, 2023
@stefreak stefreak changed the title fix: kubectl retry fix: avoid crash during kubectl retry Sep 15, 2023
vvagaytsev
vvagaytsev previously approved these changes Sep 15, 2023
@stefreak stefreak added this pull request to the merge queue Sep 16, 2023
Merged via the queue into main with commit c5a7679 Sep 16, 2023
42 checks passed
@stefreak stefreak deleted the fix-kubectl-retry branch September 16, 2023 13:36
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.

None yet

2 participants