mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-24 11:48:04 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user