Overwrite old values correctly, don't cache current resources list

This commit is contained in:
Andrei Pohilko
2023-02-21 15:22:49 +00:00
parent d86c46aabf
commit a7c7ba80fe
3 changed files with 8 additions and 8 deletions

View File

@@ -121,7 +121,7 @@ func (h *HelmHandler) History(c *gin.Context) {
}
func (h *HelmHandler) Resources(c *gin.Context) {
h.EnableClientCache(c)
// can't enable the client cache because resource list changes with time
rel := h.getRelease(c)
if rel == nil {

View File

@@ -320,6 +320,7 @@ func (r *Release) Upgrade(repoChart string, version string, justTemplate bool, v
cmd.Version = version
cmd.DryRun = justTemplate
cmd.ResetValues = true
chrt, err := locateChart(cmd.ChartPathOptions, repoChart, r.Settings)
if err != nil {