Step: optional-operators-cvp-common-test

The shared CVP tests to validate optional operator images.

Container image used for this step: cli

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

Environment

Step exposes no environmental variables except the defaults.

Source Code

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

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

PULL_EVENTS_ART="${ARTIFACT_DIR}/image_pull_events.txt"
WARNING_EVENTS_ART="${ARTIFACT_DIR}/warning_events.txt"

# Collect all image pull events from the testing cluster
# The output will contain the timestamp and the event message
# in a comma-separated value format
echo "Collecting all image pull events from the testing cluster in ${PULL_EVENTS_ART}"
oc get events --all-namespaces --field-selector reason==Pulling -o go-template='{{range .items}}{{.lastTimestamp}},{{.message}}{{"\n"}}{{end}}' > "${PULL_EVENTS_ART}"

# Collect all AppliedWithWarnings events from the testing cluster
echo "Collecting all AppliedWithWarnings events from the testing cluster in ${WARNING_EVENTS_ART}"
oc get events --all-namespaces --field-selector reason=AppliedWithWarnings > "${WARNING_EVENTS_ART}"

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

Owners:

Approvers:

Source code for this page located on GitHub