Upgrading with the CLI
Use these instructions to upgrade an existing IBM® Netcool® Operations Insight® Event Integrations Operator using the command line interface (CLI).
Upgrade the Catalog Source
v3.6.0-amd64. If the latest tag is used, these steps can be
skipped.- Login to the cluster using the
occlient. - In the target namespace, search for an existing
CatalogSourceresource for the IBM Netcool Operations Insight Event Integrations operator:
If it is not in the target namespace, run the same command in thekubectl get catalogsource --namespace $namespaceopenshift-marketplacenamespace. - Update the catalog source resource and upgrade image (
spec.image) with the IBM Netcool Operations Insight Event Integrations catalog source image with image tag, for example:icr.io/cpopen/ibm-netcool-integrations-operator-catalog:<latest version>or with the image with digest, where
<latest version>is the latest catalog source image tag. Click the Save button. - Give a few minutes for the operator catalog to update and verify that the operator pod is
restarted and it is in
Runningstate.
Upgrade the IBM Netcool Operations Insight Event Integrations operator
To upgrade to the latest operator version, the operator subscription must be updated
to the latest subscription channel. You may skip this step if your operator is already subscribed to
the latest update channel available and the Installation mode is specified as
Automatic.
- Get the existing
Subscriptionresource.kubectl get subscription --namespace $namespace kubectl describe subscription <subscription name> --namespace $namespaceReplace
<subscription name>with the name of the existing Subscription resource. - Edit the Subscription resource from the previous step and change the
spec.channelto the latest available subscription channel. The subscription channel follows thevX.Yformat whereXis the major version andYis the minor version of the operator. - Describe the new
InstallPlanresource for the new operator version:kubectl get installplan --namespace $namespace kubectl describe <install-plan resource>Replace
<install-plan resource>with the name of the resource. - If the
Approvedfield showsRequiresApprovalorfalse, edit theInstallPlanresource and change the value ofspec.approvedtotrue. - Run the following command to get the
.status.phasefield of theInstallPlanresource and ensure that the value of changes toComplete:kubectl get installplan <install-plan resource> --namespace $namespace -o jsonpath='{.status.phase}'
Upgrade the Probe or Gateway instances
- Run the command below to obtain the existing instance resources in the target namespace:
kubectl get prometheusprobe,pulsarprobe,jdbcgateway,pulsargateway,kafkaprobe,webhookprobe --namespace $namespace - Edit the probe or gateway instance and update its version specification
(
spec.version) using thekubectl edit <resource type> <resource name>command. It is recommended that you take a copy of the instance YAML before changing it, in case you later decide to rollback. For more information about configurable properties for each integration, see: - Save the custom resource YAML.
- Verify that the instance status shows OK that indicates the that upgrade was successful. Optionally, verify that all pods are running to ensure that the upgrade has completed successfully.