Upgrading a Helm chart to use a different spec version
To change or upgrade a Helm chart to use a different spec version, edit the YAML files to provide the relevant information.
Procedure
-
From the working directory, unpackage the chart archive file (chart.tgz)
by running the following command:
tar -xzvf chart.tgz - In the resulting folder, go to the directory named after your chart, such as /deployed-mdm.
- Edit the values.yml file to update the spec according to your requirements.
- Edit the chart.yml file to increment the
versionparameter as needed. - To complete the upgrade, you will need two pieces of information: the release name and
the chart path. Get the release name using the command
helm ls. - Run the
helm upgradecommand, including the release name and chart path as arguments.helm upgrade <release-name> <chart-path>Tip: The chart path is the working directory where the chart is located. If you are running the upgrade command from within the chart working directory, use a period character (.) to stand in for the <chart-path>. For example:helm upgrade deployed-mdm . - Verify the status of the Helm chart by running the following command:
helm lsReview the output to confirm:- the expected change in revision number
- a recent timestamp in the UPDATED column
- the updated version number
- Check the deployment status of the pods using the following command:
oc get podsDepending on how quickly you check the status after running the upgrade, the pods may still be getting recreated.