Step: operatorhub-subscribe

The subscribe step installs an optional operator on the OperatorHub from a provided package and channel.

Container image used for this step: cli

cli resolves to an image built or imported by the ci-operator configuration (documentation).

Environment

In addition to the default environment, the step exposes the following:

Variable Name Type Variable Content
PACKAGE Parameter[?] The package name of the optional operator to install.
CHANNEL Parameter[?] The channel from which to install the package.
INSTALL_NAMESAPCE Parameter[?] The namespace into which the operator and catalog will be installed. If empty, a new namespace will be created.
TARGET_NAMESPACES Parameter[?] A comma-separated list of namespaces the operator will target. If empty, all namespaces will be targeted. If no OperatorGroup exists in $OO_INSTALL_NAMESPACE, a new one will be created with its target namespaces set to $OO_TARGET_NAMESPACES, otherwise the existing OperatorGroup's target namespace set will be replaced. The special value "!install" will set the target namespace to the operator's installation namespace.

Source Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#!/bin/bash

set -o nounset
set -o errexit
set -o pipefail


echo "Installing ${PACKAGE} from ${CHANNEL} into ${INSTALL_NAMESPACE}, targeting ${TARGET_NAMESPACES}"

# TODO

Properties

Property Value Description
Resource requests (cpu) 300m Used in .resources.requests of the pod running this step.
Resource requests (memory) 300Mi Used in .resources.requests of the pod running this step.

GitHub Link:

https://github.com/openshift/release/blob/master/ci-operator/step-registry/operatorhub/subscribe/operatorhub-subscribe-ref.yaml

Owners:

Approvers:

Source code for this page located on GitHub