Skip to content

Commit

Permalink
fix(upgrade_service): stop running preflights on save config
Browse files Browse the repository at this point in the history
  • Loading branch information
JGAntunes committed Oct 11, 2024
1 parent 8000c68 commit 9bd67bc
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pkg/upgradeservice/handlers/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import (
"github.com/replicatedhq/kots/pkg/render"
rendertypes "github.com/replicatedhq/kots/pkg/render/types"
"github.com/replicatedhq/kots/pkg/template"
upgradepreflight "github.com/replicatedhq/kots/pkg/upgradeservice/preflight"
"github.com/replicatedhq/kots/pkg/util"
kotsv1beta1 "github.com/replicatedhq/kotskinds/apis/kots/v1beta1"
"github.com/replicatedhq/kotskinds/multitype"
Expand Down Expand Up @@ -379,13 +378,6 @@ func (h *Handler) SaveConfig(w http.ResponseWriter, r *http.Request) {
}
}

if err := upgradepreflight.Run(params); err != nil {
response.Error = "failed to run preflights"
logger.Error(errors.Wrap(err, response.Error))
JSON(w, http.StatusInternalServerError, response)
return
}

response.Success = true
JSON(w, http.StatusOK, response)
}
Expand Down

0 comments on commit 9bd67bc

Please sign in to comment.