Can a Helm values.yaml file be Updated from the Command Line?

Viewed 847

I'm using gitlab for my build pipeline and helm to package my application.

When the build for my app succeeds I want to update my chart repo with a new image tag.

Is there a way to update the values.yaml file for a helm chart from the helm cli?

1 Answers

You can use yq to update the files, but helm does not do this. I use this to update the version in my chart.yaml

yq  -i eval '.version = "${nextVersion}"' Chart.yaml
Related