Step: ipi-deprovision-deprovision-kubevirt

The IPI deprovision step tears down the cluster. This step was duplicated from ipi-deprovision-deprovision-ref.yaml because of the changes in calling the binary openshift-install, that needs the KUBECONFIG of the infra cluster, in order to destroy a tenant cluster.

Container image used for this step: installer

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

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

trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN} && wait; fi' TERM

export HOME=/tmp

echo "Deprovisioning cluster ..."
if [[ ! -s "${SHARED_DIR}/metadata.json" ]]; then
  echo "Skipping: ${SHARED_DIR}/metadata.json not found."
  exit
fi

cp -ar "${SHARED_DIR}" ${HOME}/installer
KUBECONFIG=${HOME}/secret-kube/kubeconfig-infra-cluster openshift-install --dir ${HOME}/installer destroy cluster &

set +e
wait "$!"
ret="$?"
set -e

cp ${HOME}/installer/.openshift_install.log "${ARTIFACT_DIR}"

exit "$ret"

Properties

Property Value Description
Termination grace period[?] 10m0s Period of time until SIGKILL signal is sent to the test pod (after SIGTERM signal is sent).
Resource requests (cpu) 1000m 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/ipi/deprovision/deprovision/kubevirt/ipi-deprovision-deprovision-kubevirt-ref.yaml

Owners:

Approvers:

Source code for this page located on GitHub