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

This commit is contained in:
Jose Diaz-Gonzalez committed 2026-01-10 02:52:01 -05:00
1 parent b45520f5b8
commit 5c2045b6ea
3 files changed
+79

No files matched your search

+6
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
}