Skip to content

Conversation

arturshadnik
Copy link
Contributor

@arturshadnik arturshadnik commented Mar 13, 2025

What this PR does / why we need it:

Currently, the helm uninstall command does not use a --wait flag, unlike the helm install and helm upgrade commands. This can lead to issues, specifically with ct install --upgrade, where certain resources (in our case, namespaces other than the release namespace) have not yet been fully deleted from the kubernetes cluster, despite the helm uninstall command having exited successfully. This is causing the subsequent helm install to fail.

By forcing helm uninstall to wait, these race conditions should not be an issue.

Special notes for your reviewer:

We considered using helm-set-args '--wait' to achieve this, but the helm test command does not recognize the --wait flag and therefore fails. A less clean but less heavy-handed approach could be to strip the --wait flag before running helm test.

Signed-off-by: Artur Shad Nik <arturshadnik@gmail.com>
@TylerGillson
Copy link

@cpanato PTAL 🙏🏼

Copy link

This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions bot added the Stale label May 12, 2025
@TylerGillson
Copy link

@unguiculus @LeoColomb - please take a look! This is a very small and safe change that could benefit others.

@github-actions github-actions bot removed the Stale label May 13, 2025
@cpanato cpanato closed this Jun 2, 2025
@cpanato cpanato reopened this Jun 2, 2025
@cpanato cpanato merged commit 2af5e23 into helm:main Jun 2, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants