Hey, you. Yeah, you! The guy who manually set a value for a Helm release and can’t figure out how to undo it. Come here.

Watch this.


Set a value in values.yaml.

horse_appreciation_level: 1.0

Upgrade the release.

helm upgrade sweet-release-of-death .

Verify the values.

helm get all sweet-release-of-death | grep horse
horse_appreciation_level: 1

Now set the same value manually.

helm upgrade --set horse_appreciation_level=2 sweet-release-of-death .

Check the values.

helm get all sweet-release-of-death | grep horse
horse_appreciation_level: 2

OK, the manually specified value superceded the value in values.yaml.

USER-SUPPLIED VALUES:
horse_appreciation_level: 2

COMPUTED VALUES:
horse_appreciation_level: 2

How do you get rid of the user specified value and go back to the one in values.yaml? If you update values.yaml and helm upgrade again without the --set option

helm upgrade sweet-release-of-death .

the user-specified value is not erased.

USER-SUPPLIED VALUES:
horse_appreciation_level: 2

COMPUTED VALUES:
horse_appreciation_level: 2

What about nulling out the user-specified value?

helm upgrade --set horse_appreciation_level=null  sweet-release-of-death .
USER-SUPPLIED VALUES:
horse_appreciation_level: null

COMPUTED VALUES:

Nope. That just nulls it out.

To undo the user-supplied value use --reset-values.

helm upgrade sweet-release-of-death . --reset-values
USER-SUPPLIED VALUES:
null

COMPUTED VALUES:
horse_appreciation_level: 3

Now go read. https://helm.sh/docs/helm/helm_upgrade/#options