Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

helm operator continuously upgrades chart with dependencies #1235

Closed
ncabatoff opened this issue Jul 17, 2018 · 2 comments
Closed

helm operator continuously upgrades chart with dependencies #1235

ncabatoff opened this issue Jul 17, 2018 · 2 comments
Labels
bug helm UX In pursuit of a delightful user experience

Comments

@ncabatoff
Copy link
Contributor

After logging "Resyncing manually upgraded Chart", helm-operator upgrades the chart, then a few minutes does it again, and again, forever.

I hacked the code to log the currRel.GetChart().String() and desRel.GetChart().String() from shouldUpgrade(), and diffed them. It looks like the only difference was in the "dependencies" field, and that they had the same set of values but in different order.

One way to fix this might be to use go-cmp on the chart objects instead of simple string comparison, with cmpopts.SortSlices to accommodate the variable order of the dependencies. This would also allow logging a more informative message as to what will change post-upgrade, via the Diff() method.

@squaremo
Copy link
Member

Yeah, nice idea about using go-cmp, comparing the strings was always going to be a bit brittle.

@stefanprodan
Copy link
Member

stefanprodan commented Oct 23, 2018

Closing since it's fixed in #1272

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug helm UX In pursuit of a delightful user experience
Projects
None yet
Development

No branches or pull requests

4 participants