Upgrading operator-managed Event Gateways on Red Hat OpenShift
On Red Hat OpenShift, upgrade to the latest version by updating the operator channel.
Pre-upgrade checks and preparation
The pre-upgrade checks and preparation ensure that your Event Endpoint Management operator and gateway installation is ready to upgrade. These steps do not commit you to completing the upgrade, so you can do them before your upgrade window.
- Determine which Operator Lifecycle Manager (OLM) channel is used by your existing
subscription.
You can check the channel that you are subscribed to in the OpenShift web console, or by using the CLI as follows:
- Run the following command to check your subscription
details:
oc -n <namespace> get subscriptionwhere
<namespace>is the Event Endpoint Management operator namespace. - Check the
CHANNELcolumn for the channel you are subscribed to, for example:
This is the subscription that you created during installation.NAME PACKAGE SOURCE CHANNEL ibm-eventendpointmanagement ibm-eventendpointmanagement ibm-eventendpointmanagement-catalog v11.7
- Run the following command to check your subscription
details:
- If you are managing your catalog sources with a CASE
bundle, then download the CASE bundle for your target version.
- Download and extract the latest Event Endpoint Management CASE
version:
oc ibm-pak get ibm-eventendpointmanagement - Generate mirror
manifests:
oc ibm-pak generate mirror-manifests ibm-eventendpointmanagement icr.io
- Download and extract the latest Event Endpoint Management CASE
version:
If you installed by using the IBM Operator Catalog, then the latest Event Endpoint Management release for your update channel is always available.
Upgrading by using the Red Hat OpenShift CLI
If you are using the Red Hat OpenShift OpenShift command-line
interface (CLI), complete the steps in the following sections to upgrade your Event Endpoint Management operator. Set
<namespace> to the namespace of your Event Endpoint Management operator.
- Log in to your Red Hat OpenShift Container Platform as a cluster administrator:
oc login. - If you are managing your catalog sources with a CASE bundle, then apply the CASE
bundle:
oc apply -f ~/.ibm-pak/data/mirror/ibm-eventendpointmanagement/<case version>/catalog-sources.yamlIf your existing subscription is already on the v11.7 channel, then the upgrade to 11.7.x is applied automatically.
- Verify that the target version Event Endpoint Management
Operator upgrade channel is
available:
oc -n <namespace> get packagemanifest ibm-eventendpointmanagement -o=jsonpath='{.status.channels[*].name}' - Change the subscription to move to the required update channel, where
vX.Yis the required update channel (for example,v11.8):oc -n <namespace> patch subscription ibm-eventendpointmanagement --patch '{"spec":{"channel":"vX.Y"}}' --type=merge - If you are upgrading from 11.6.x, then update the
spec.license.licensefield in the custom resources of your Event Gateway instances to the license for 11.7.0.- Get the names of your Event Gateway
instances:
oc -n <namespace> get eventgateways.events.ibm.com - For each instance, update the
license:
oc -n <namespace> patch eventgateway.events.ibm.com <gateway instance name> --patch '{"spec":{"license":{"license":"<license ID>"}}}' --type=merge
- Get the names of your Event Gateway
instances:
- Check the status of the
Subscriptioncustom resource to confirm that your Event Endpoint Management operator was updated to your target version.
whereoc -n <namespace> get -o yaml subscription<namespace>is the Event Endpoint Management operator namespace. Thestatus.installedCSVfield in the output shows the current operator version.
All Event Gateway pods that are updated as part of the upgrade are restarted.
Upgrading Subscription by using the Red Hat OpenShift OpenShift web console
If you are using the web console, complete the steps in the following sections to upgrade your Event Endpoint Management operator and Event Gateway instances.
- Log in to the OpenShift Container Platform web console using your login credentials.
- Expand Operators in the navigation on the left, and click Installed Operators.
- From the Project list, select the project (namespace) the instance is installed in.
- Locate the operator that manages your Event Gateway instance in the project. It is called Event Endpoint Management in the Name column. Click the Event Endpoint Management link in the row.
- Click the Subscription tab to display the Subscription details for the Event Endpoint Management operator.
- Select the version number link in the Update channel section (for example, v11.8). The Change Subscription update channel dialog is displayed, showing the channels that are available to upgrade to.
- Select the required channel, for example v11.8, and click Save on the Change Subscription update channel dialog.
- If
you are upgrading from 11.5.x, then update the
spec.license.licensefield in the custom resources of your Event Gateway instances to the license ID for 11.6.0 and later. The instances will not upgrade until the license ID is updated. - Monitor your Event Endpoint Management operator and Event Gateway instances in the web console to confirm that the upgrade completes.