Upgrading Red Hat Developer Hub
Abstract
Chapter 1. Upgrading the Red Hat Developer Hub Operator
If you use the Operator to deploy your Red Hat Developer Hub instance, then an administrator can use the OpenShift Container Platform web console to upgrade the Operator to a later version.
OpenShift Container Platform is currently supported from version 4.14 to 4.17. See also the Red Hat Developer Hub Life Cycle.
Prerequisites
- You are logged in as an administrator on the OpenShift Container Platform web console.
- You have installed the Red Hat Developer Hub Operator.
- You have configured the appropriate roles and permissions within your project to create or access an application. For more information, see the Red Hat OpenShift Container Platform documentation on Building applications.
Procedure
- In the Administrator perspective of the OpenShift Container Platform web console, click Operators > Installed Operators.
- On the Installed Operators page, click Red Hat Developer Hub Operator.
- On the Red Hat Developer Hub Operator page, click the Subscription tab.
From the Upgrade status field on the Subscription details page, click Upgrade available.
NoteIf there is no upgrade available, the Upgrade status field value is Up to date.
- On the InstallPlan details page, click Preview InstallPlan > Approve.
Verification
- The Upgrade status field value on the Subscription details page is Up to date.
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
- 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 <your_namespace>
For 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.4.0
NoteYou can also provide extra values to the chart by creating a
new-values.yml
file on your workstation with values that override the attributes in the installed chart or by adding new attributes.