fix: delete the tls app chart when the app is deleted

This commit is contained in:
Jose Diaz-Gonzalez
2026-01-10 02:52:01 -05:00
parent b45520f5b8
commit 5c2045b6ea
3 changed files with 79 additions and 0 deletions

View File

@@ -1716,6 +1716,12 @@ func TriggerSchedulerPostDelete(scheduler string, appName string) error {
return fmt.Errorf("Error uninstalling chart: %w", err)
}
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
if _, err := DeleteTLSSecret(ctx, appName); err != nil {
common.LogWarn(fmt.Sprintf("Error deleting TLS secret for %s: %v", appName, err))
}
return nil
}