Step: ccm-must-gather

The must-gather step runs the must-gather tool to gather ccm artifacts.

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
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash

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

if test ! -f "${KUBECONFIG}"
then
	echo "No kubeconfig, so no point in calling must-gather."
	exit 0
fi

# For disconnected or otherwise unreachable environments, we want to
# have steps use an HTTP(S) proxy to reach the API server. This proxy
# configuration file should export HTTP_PROXY, HTTPS_PROXY, and NO_PROXY
# environment variables, as well as their lowercase equivalents (note
# that libcurl doesn't recognize the uppercase variables).
if test -f "${SHARED_DIR}/proxy-conf.sh"
then
	# shellcheck disable=SC1090
	source "${SHARED_DIR}/proxy-conf.sh"
fi

CCM_MUST_GATHER_IMAGE=quay.io/elmiko/must-gather:cccmo

echo "Running must-gather-ccm..."
mkdir -p ${ARTIFACT_DIR}/must-gather-ccm
oc --insecure-skip-tls-verify adm must-gather --image ${CCM_MUST_GATHER_IMAGE} --dest-dir ${ARTIFACT_DIR}/must-gather-ccm > ${ARTIFACT_DIR}/must-gather-ccm/must-gather.log
tar -czC "${ARTIFACT_DIR}/must-gather-ccm" -f "${ARTIFACT_DIR}/must-gather-ccm.tar.gz" .
rm -rf "${ARTIFACT_DIR}"/must-gather-ccm

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.
Optional on success[?] true Allows the step to be skipped if all steps in pre and test phases succeeded.

GitHub Link:

https://github.com/openshift/release/blob/master/ci-operator/step-registry/ccm/must-gather/ccm-must-gather-ref.yaml

Owners:

Approvers:

Reviewers:

Source code for this page located on GitHub