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

  1. From the working directory, unpackage the chart archive file (chart.tgz) by running the following command:
    tar -xzvf chart.tgz
  2. In the resulting folder, go to the directory named after your chart, such as /deployed-mdm.
  3. Edit the values.yml file to update the spec according to your requirements.
  4. Edit the chart.yml file to increment the version parameter as needed.
  5. 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.
  6. Run the helm upgrade command, 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 .
  7. Verify the status of the Helm chart by running the following command:
    helm ls
    Review the output to confirm:
    • the expected change in revision number
    • a recent timestamp in the UPDATED column
    • the updated version number
  8. Check the deployment status of the pods using the following command:
    oc get pods

    Depending on how quickly you check the status after running the upgrade, the pods may still be getting recreated.