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

feat: add --wait flag to helm uninstall #721

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

arturshadnik
Copy link

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

@TylerGillson
Copy link

@cpanato PTAL 🙏🏼

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.

2 participants