Step: upi-install-powervs

This step deploys a OCP Cluster at IBM Cloud on PowerVS.

Container image used for this step: ocp-on-powervs/powervs-container-host:powervs-ocp-jenkins-deployment

ocp-on-powervs/powervs-container-host:powervs-ocp-jenkins-deployment resolves to an image imported from the specified imagestream tag on the build farm (documentation).

Environment

In addition to the default environment, the step exposes the following:

Variable Name Type Variable Content
OPENSHIFT_JENKINS_JOB_NAME Parameter[?] The name of the Jenkins job used to create a cluster. (default: ibmcloud-powervs-ocp-actions/ibmcloud-powervs-redhat-cluster-deploy)
OPENSHIFT_CLUSTER_FLAVOR Parameter[?] The flavor of OpenShift cluster to install. (default: small)
OPENSHIFT_VERSION Parameter[?] The version of OpenShift to install, in MAJOR.MINOR format. (default: 4.7)
REQUESTOR_EMAIL Parameter[?] The e-mail address for the engineer requesting this cluster.

Source Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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

POWERVS_JENKINS_URL="$( cat /etc/credentials/JENKINS_URL )"
POWERVS_JENKINS_USER="$( cat /etc/credentials/JENKINS_USER )"
POWERVS_JENKINS_TOKEN="$( cat /etc/credentials/JENKINS_TOKEN )"

# The action that will be executed by Jenkins
export ACTION="create"
export POWERVS_JENKINS_URL
export POWERVS_JENKINS_USER
export POWERVS_JENKINS_TOKEN

echo "$(date -u --rfc-3339=seconds) - Deploying cluster on PowerVS"
/usr/local/bin/python3.9 /cluster/powervs.py

cp -rp --target-directory "${SHARED_DIR}" /tmp/output/*

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) 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/upi/install/powervs/upi-install-powervs-ref.yaml

Owners:

Approvers:

Source code for this page located on GitHub