At $work we run renovate to keep our docker images up to date, and for us that also means updating the helm charts to use newer images. We also use "upstream" Helm charts (a decision we're considering walking back on).
Renovate supports helm values files with the structure below,
note the parent must be called
(lifted from docs)
image: repository: "some-docker/dependency" tag: v1.0.0 registry: registry.example.com # optional key, will default to "docker.io"
"upstream" helm charts are all over the place in terms of quality and standards.
Thankfully, most people seem to follow the basic template created by
Unfortunately, Helm has a best practices doc that says different things, in particular flat or nested values. Example of flat:
imageRepository: "some-docker/dependency" imageTag: v1.0.0 imageRegistry: registry.example.com
So what if your helm chart does this?
renovate has a general purpose regex manager module that you could use to match the keys. But that's more config to keep somewhere.
YAML has anchors, and references, and Helm thankfully ignores unused values, so you could instead do:
app: image: repository: &repo "some-docker/dependency" tag: &t v1.0.0 registry: ® registry.example.com # optional key, will default to "docker.io" imageRepository: *repo imageTag: *t imageRegistry: *reg
renovate would recognize the nested structure, and helm would dereference the value when it parses the yaml so it all comes out correct.
I was only midly surprised my coworker agreed to this hack...