Operator Upgrade
Operator can be upgraded in 2 ways:
-
Using Operator Lifecycle Manager (OLM)
-
Using script (for non-OLM based installation)
Using OLM
The upgrade of the Operator is done via Operator Lifecycle Manager.
The Update approval (InstallPlan in OLM terms) strategy plays a role while upgrading dell-csm-operator on OpenShift. This option can be set during installation of dell-csm-operator on OpenShift via the console and can be either set to Manual or Automatic.
- If the
Update approvalis set toAutomatic, OpenShift automatically detects whenever the latest version of dell-csm-operator is available in theOperator hub, and upgrades it to the latest available version. - If the upgrade policy is set to
Manual, OpenShift notifies of an available upgrade. This notification can be viewed by the user in theInstalled Operatorssection of the OpenShift console. Clicking on the hyperlink toApprovethe installation would trigger the dell-csm-operator upgrade process.
NOTE: The recommended version of OLM for Upstream Kubernetes is
v0.25.0.
NOTE: The recommended
Update approvalisManualto prevent the installation of non-qualified versions of operator.
Using Installation Script
- Clone and checkout the required csm-operator version using
git clone -b v1.10.1 https://github.com/dell/csm-operator.git
cd csm-operator- Execute
bash scripts/install.sh --upgrade. This command will install the latest version of the operator.
NOTE: Dell CSM Operator would install to the ‘dell-csm-operator’ namespace by default.