Interview Prep/Helm/Release Lifecycle, Repositories & OCI

How do you pin and constrain chart versions when installing?

BeginnerConceptRelease Lifecycle, Repositories & OCI
Answer
helm upgrade --install pg bitnami/postgresql --version 16.4.1        # exact
helm upgrade --install pg bitnami/postgresql --version '~16.4.0'     # patch updates only
helm upgrade --install shop oci://$REG/charts/shop --version 1.4.0

In production we use exact versions; ranges belong only in Chart.yaml dependencies resolved by Chart.lock.

All Helm questions Roadmap: Helm

More on Release Lifecycle, Repositories & OCI