feat: add --force flag support for helm upgrade (#505)

Add a "Force upgrade" checkbox in the upgrade modal footer that passes
the --force flag to helm upgrade, causing resources to be deleted and
recreated. Also fix the version selector flashing the URL input while
loading by showing a spinner.

Closes #505

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Andrei Pohilko
2026-03-17 16:18:00 +00:00
parent 4fb2eb099a
commit c5ae60a779
4 changed files with 28 additions and 8 deletions

View File

@@ -389,7 +389,8 @@ func (h *HelmHandler) Upgrade(c *gin.Context) {
}
justTemplate := c.PostForm("preview") == "true"
rel, err := existing.Upgrade(repoChart, c.PostForm("version"), justTemplate, values)
force := c.PostForm("force") == "true"
rel, err := existing.Upgrade(repoChart, c.PostForm("version"), justTemplate, force, values)
if err != nil {
_ = c.AbortWithError(http.StatusInternalServerError, err)
return