helm-controller icon indicating copy to clipboard operation
helm-controller copied to clipboard

Add option to force upgrade when install is tracking latest version

Open claycooper opened this issue 3 years ago • 3 comments

If no version is specified in the HelmChart resource it's not possible (or not documented) how to trigger an upgrade without changing an inconsequential value in the spec. A possible solution would be to add a force flag to the spec that the controller sets to false after successful completion or watch for a specific annotation to trigger an upgrade. Alternatively, having documentation that says "here's a safe key in the spec that you can modify to trigger an upgrade.

claycooper avatar Oct 31 '22 14:10 claycooper

You can just change the whitespace or a comment in the valuesContent... At the moment the controller does not have any functionality to actually poll the repo for changes to the chart.

brandond avatar Oct 31 '22 16:10 brandond

I'm not looking for the controller to look for changes in the chart repos. I'm looking for a way to have the controller run the install/upgrade for the latest chart without specifying the version. With Helm CLI I'd run helm upgrade foo with my CD tooling but I can't do that using helm-controller since the HelmChart needs to notice a change. I'd be happy with having the controller running when a specific annotation, like lastUpgraded, is modified on an existing object.

claycooper avatar Oct 31 '22 17:10 claycooper

Can't the controller have a scheduled job/routine to run in periods (e.g. every 7 days) and run the necessary helm commands? Or can't it be defined as if some annotation (or some other condition) is specified on an object, then the controller creates a CronJob instead of a Job?

arf1372 avatar Dec 08 '24 07:12 arf1372