Chapter 2. Upgrading the Red Hat Developer Hub Helm Chart
You can upgrade to a later version of Red Hat Developer Hub in OpenShift Container Platform by using either the web console or the CLI.
OpenShift Container Platform web console
WarningIf you have installed Developer Hub manually using the Helm CLI, the Helm chart release upgrade in the OpenShift Developer Console is going to fail. The failure is due to the limitations when using the OpenShift Container Platform console to upgrade a Helm release that was initially deployed using the Helm CLI. You can bypass this limitation by using the Helm CLI to upgrade. However, if you still want to upgrade using the console, select the Helm Chart version from the drop-down list and select the Developer Hub version you want to upgrade to. Before performing this step, save your
values.yamlconfiguration file in a different location.- In the Developer perspective, click Helm to open the Helm Releases tab.
- Click the overflow menu on the Helm release that you want to use and select Upgrade.
- On the Upgrade Helm Release page, select the version of Developer Hub that you want to upgrade to from the chart version drop-down list.
Click Upgrade.
NoteIt might take a few minutes to delete the resources in the older versions and to start the newer versions of the Developer Hub pods.
- Close all open Developer Hub web pages, and log in again to verify that the upgrade was successful.
OpenShift Container Platform CLI
Log in to the OpenShift Container Platform cluster as the cluster administrator and switch to the project or namespace in which Developer Hub was installed.
oc login -u <user> -p <password> https://api.<HOSTNAME>:6443 oc project my-rhdh-projectFor a new version of the Developer Hub Helm chart, run the following upgrade command:
helm upgrade -i rhdh -f new-values.yml \ openshift-helm-charts/redhat-developer-hub --version 1.7.4NoteYou can also provide extra values to the chart by creating a
new-values.ymlfile on your workstation with values that override the attributes in the installed chart or by adding new attributes.