Upgrading the installed Operator Online

Based on the Registry poll interval provided in the subscription, the cluster looks for new version of the Operator periodically. Whenever an upgrade is available for the subscribed channel, the Operator either automatically upgrades or wait for manual approval based on the selected Update approval strategy.

When you create a subscription for the IBM Sterling Order Management Operator, you can choose automatic or manual updates approval strategy.

Automatic approval strategy

If you choose automatic updates for an installed Operator, when a new version of that Operator is available in the selected channel, Operator Lifecycle Manager (OLM) automatically upgrades the running instance of your Operator without human intervention.

Manual approval strategy

If you select manual updates, when a newer version of an Operator is available, OLM creates an update request. As a cluster administrator, you must then manually approve that update request to have the Operator updated to the new version.

Complete the following steps to upgrade the Operator to the latest version.
Note: You can use either oc or kubectl commands.
  1. Get the install plan.
        ```bash
        oc get installplan -n <NAMESPACE>
        ```
  2. Approve the install plan.
        ```bash
        oc patch installplan <INSTALL PLAN NAME> -n <NAMESPACE> --type merge --patch '{"spec":{"approved":true}}'
        ```

For more information about updating Operators, see Updating installed Operators.