Step: optional-operators-cvp-common-probe

This steps serves as an frequently-executed probe that verifies OpenShift CI generally works and certain externally observed behavior does not change. The probe will attempt to access bundle and index images (testing that OpenShift CI can access internal images via authenticated proxy) and then save values of all parameters to a well-known artifact (so it can be verified that parameter passing works and artifact placement did not change).

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
BUNDLE_IMAGE Dependency[?] Pull specification for bundle-image image
OO_INDEX Dependency[?] Pull specification for index-image image
OO_PACKAGE Parameter[?] The name of the operator package to be installed. Must be present in the index image referenced by `OO_INDEX`.
OO_CHANNEL Parameter[?] The name of the operator channel to track.
OO_INSTALL_NAMESPACE Parameter[?] The namespace into which the operator and catalog shall be installed. Special value `!create` means that a new namespace would be created.
OO_TARGET_NAMESPACES Parameter[?] A comma-separated list of namespaces the operator will target. Special, value `!all` means that all namespaces would be targeted. The special value `!install` would set the target namespace to the operator's installation namespace.

Source Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

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

echo "Accessing the bundle image: $BUNDLE_IMAGE"
oc image info --filter-by-os linux/amd64 -a /var/run/brew-pullsecret/.dockerconfigjson "$BUNDLE_IMAGE"

echo "Accessing the index image: $OO_INDEX"
oc image info --filter-by-os linux/amd64 -a /var/run/brew-pullsecret/.dockerconfigjson "$OO_INDEX"

echo "Creating an artifact in $ARTIFACT_DIR"
cat > "$ARTIFACT_DIR/well-known-artifact" << EOF
BUNDLE_IMAGE=$BUNDLE_IMAGE
OO_INDEX=$OO_INDEX
OO_PACKAGE=$OO_PACKAGE
OO_CHANNEL=$OO_CHANNEL
OO_INSTALL_NAMESPACE=$OO_INSTALL_NAMESPACE
OO_TARGET_NAMESPACES=$OO_TARGET_NAMESPACES
EOF

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/optional-operators/cvp-common/probe/optional-operators-cvp-common-probe-ref.yaml

Owners:

Approvers:

Source code for this page located on GitHub