1
0
mirror of https://github.com/helm/chart-testing.git synced 2026-02-05 09:45:14 +01:00

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

Signed-off-by: Artur Shad Nik <arturshadnik@gmail.com>
This commit is contained in:
Artur Shad Nik
2025-06-02 03:32:00 -07:00
committed by GitHub
parent 3f428cda4d
commit 2af5e2357f

View File

@@ -91,7 +91,7 @@ func (h Helm) Test(namespace string, release string) error {
func (h Helm) DeleteRelease(namespace string, release string) {
fmt.Printf("Deleting release %q...\n", release)
if err := h.exec.RunProcess("helm", "uninstall", release, "--namespace", namespace, h.extraArgs); err != nil {
if err := h.exec.RunProcess("helm", "uninstall", release, "--namespace", namespace, "--wait", h.extraArgs); err != nil {
fmt.Println("Error deleting Helm release:", err)
}
}