manage
apply-olm
Extended description
apply-olm
command creates or updates the following
objects on your cluster.- Catalog sources
-
A catalog source is a way to introduce new software or new versions of software to the cluster. A catalog source is a repository of operator versions (as specified by a cluster service version), custom resource definitions (CRDs), and packages that comprise an application. The information provided by the catalog source enables OLM to discover and install operators and their dependencies.
The
apply-olm
command creates the catalog sources for the components that you want to install. - Cluster service versions
-
A cluster service version (CSV) represents a specific version of an operator. The information provided by the CSV enables OLM to:
- Understand the custom resources that the operator manages or depends on
- Introduce the custom resource definition (CRD), if it doesn't exist
- Set up the operator's service accounts
- Start up the operator deployment
- Keep the operator running safely on the cluster
- Understand how updates should be applied when new versions of the operator are available on the cluster
The
apply-olm
command creates the cluster service versions for the components that you want to install. - Operator subscriptions
-
An operator subscription provides the following information to OLM:
- The name of the operator
- The location to install the operator
- The channel to subscribe to
- The install plan approval mechanism to use
- The catalog source to use
The
apply-olm
command creates the operator subscriptions for the components that you want to install.
For more information, see Cloud Pak for Data operators.
Syntax
cpd-cli manage apply-olm \
--components=<comma-separated-list-of-component-names> \
--release=<version> \
[--upgrade=true|false] \
[--cpd_operator_ns=<project-name>] \
[--cs_ns=<project-name>] \
[--case_download=true|false] \
[--catsrc=true|false] \
[--sub=true|false] \
[--param-file=<file-name>] \
[--preview=true|false]
[-v][-vv][-vvv]
Arguments
The apply-olm
command has no arguments.
Options
Option | Description |
---|---|
--case_download |
Specify whether to download the CASE packages for the specified
components if they are not detected in the work directory. Important: The command
will fail if the CASE packages are not
in the
cpd-cli-workspace/olm-utils-workspace/work directory.
|
--catsrc |
Specify whether to create the catalog source objects for the
specified components. You must create the catalog source objects for any services that you plan to install.
|
--cpd_operator_ns |
Specialized installations only. The project (namespace) where you
want to install the IBM Cloud Pak for Data software
operators. In a specialized installation:
For more information about specialized installations, see Operator installation architecture.
|
--components |
A comma-separated list of the components that you want to install or
upgrade.
|
--cs_ns |
The project where IBM Cloud Pak foundational services are installed
or will be installed.
|
--param-file |
The fully qualified path of a file that includes additional
parameters. Create the file in the
|
--preview |
Preview the commands that run when you issue this CLI
command. The command issues a series of
The
|
--release |
The release that you want to
install or upgrade to.
|
--sub |
Specify whether to create the operator subscriptions for the
specified components. You must create the operator subscriptions for any services that you plan to install.
|
--upgrade |
Specify whether you are upgrading
an existing installation. You must set this option to true to upgrade the
software.
|
-v -vv -vvv |
Display verbose output. Options are listed from least verbose to the most verbose.
|
Examples
Use a script to create environment variables with the correct values for your environment. For details, see Best practice: Setting up install variables.
- Create the OLM artifacts for the specified components
-
For an express installation, where all of the operators are installed in the same project (namespace):
cpd-cli manage apply-olm \ --release=${VERSION} \ --components=${COMPONENTS}
For a specialized installation, where the Cloud Pak for Data operators are installed in a separate project (namespace):cpd-cli manage apply-olm \ --release=${VERSION} \ --components=${COMPONENTS} \ --cpd_operator_ns=${PROJECT_CPD_OPS}
- Preview the
oc
commands to create the OLM artifacts for the specified components -
cpd-cli manage apply-olm \ --release=${VERSION} \ --components=${COMPONENTS} \ --preview=true
- Upgrade the OLM artifacts for the specified components
-
cpd-cli manage apply-olm \ --release=${VERSION} \ --components=${COMPONENTS} \ --upgrade=true
- Download the CASE packages for the specified components without creating any OLM artifacts
- This command also saves the CASE
packages to a different directory on the client
workstation.
cpd-cli manage apply-olm \ --release=${VERSION} \ --components=${COMPONENTS} \ --catsrc=false \ --sub=false \ --offline_dir=${OFFLINEDIR_CPD}