Step: ipi-install-times-collection

The IPI install step picks up the cluster installation start and end times to add it to the openshift-install configmap in the openshift-config namespace.

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
#!/bin/bash

set -o nounset
set -o pipefail

# 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

echo "Updating openshift-install ConfigMap with the start and end times."
START_TIME=$(cat "$SHARED_DIR/CLUSTER_INSTALL_START_TIME")
END_TIME=$(cat "$SHARED_DIR/CLUSTER_INSTALL_END_TIME")
if ! oc patch configmap openshift-install -n openshift-config -p '{"data":{"startTime":"'"$START_TIME"'","endTime":"'"$END_TIME"'"}}'
then
    oc create configmap openshift-install -n openshift-config --from-literal=startTime="$START_TIME" --from-literal=endTime="$END_TIME"
fi

Properties

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

GitHub Link:

https://github.com/openshift/release/blob/master/ci-operator/step-registry/ipi/install-times-collection/ipi-install-times-collection-ref.yaml

Owners:

Approvers:

Source code for this page located on GitHub