fix: uninstall in foreground

This commit is contained in:
Jose Diaz-Gonzalez
2024-01-18 17:41:42 -05:00
parent 997f04afae
commit da4771e6e4

View File

@@ -274,6 +274,7 @@ func (h *HelmAgent) UpgradeChart(input ChartInput) error {
func (h *HelmAgent) UninstallChart(releaseName string) error {
uninstall := action.NewUninstall(h.Configuration)
uninstall.DeletionPropagation = "foreground"
_, err := uninstall.Run(releaseName)
if err != nil {
return fmt.Errorf("Error uninstalling chart: %w", err)