fix: delete the temporary helm chart on disk

This commit is contained in:
Jose Diaz-Gonzalez
2024-01-23 07:25:42 -05:00
parent 99f20a962e
commit cf7d35601d

View File

@@ -231,7 +231,7 @@ func TriggerSchedulerDeploy(scheduler string, appName string, imageTag string) e
if err != nil {
return fmt.Errorf("Error creating chart directory: %w", err)
}
// defer os.RemoveAll(chartDir)
defer os.RemoveAll(chartDir)
if err := os.MkdirAll(filepath.Join(chartDir, "templates"), os.FileMode(0755)); err != nil {
return fmt.Errorf("Error creating chart templates directory: %w", err)