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): do not throw if paused resource is missing #6799

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

eysi09
Copy link
Collaborator

@eysi09 eysi09 commented Jan 23, 2025

What this PR does / why we need it:

Before this fix, we'd check for paused Helm resources by listing all rendered resources and not handling the error if the resource isn't deployed in the first place.

Furthermore, we were missing an await statement so the 404 error from a missing resource would pop up at a random time, usually after the status handler returns.

So essentially a helm Deploy could fail if using AEC and a potentially paused resource was missing.

Now we correctly ignore rendered resources that haven't been deployed and await for the API call.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Before this fix, we'd check for paused Helm resources by listing all
rendered resources and not handling the error if the resource isn't
deployed in the first place.

Furthermore, we were missing an `await` statement so the 404 error from
a missing resource would pop up at a random time, usually after the
status handler returns.

So essentially a `helm` Deploy could fail if using AEC and a potentially
paused resource was missing.

Now we correctly ignore rendered resources that haven't been deployed
and await for the API call.
@eysi09 eysi09 requested review from 10ko and vvagaytsev January 23, 2025 21:44
@eysi09 eysi09 enabled auto-merge January 23, 2025 22:17
@eysi09 eysi09 added this pull request to the merge queue Jan 24, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 24, 2025
@vvagaytsev vvagaytsev added this pull request to the merge queue Jan 24, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 24, 2025
@vvagaytsev vvagaytsev added this pull request to the merge queue Jan 24, 2025
Merged via the queue into main with commit 62b77ed Jan 24, 2025
40 checks passed
@vvagaytsev vvagaytsev deleted the fix-get-paused-resources branch January 24, 2025 13:48
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.

2 participants