Interview Prep/Helm/Values & Precedence

What is the difference between `--set` and `--set-string`?

BeginnerConceptValues & Precedence
Answer

--set infers types: true/false become booleans, digits become numbers (1.10 becomes 1.1, 0123 may lose the zero). --set-string keeps the value as a string.

helm upgrade shop ./shop --set-string api.image.tag=1.10 --set-string podAnnotations.team=007

Use --set-string for image tags, versions, account IDs, ports used in annotations and anything that looks numeric but is an identifier.

All Helm questions Roadmap: Helm

More on Values & Precedence