Step: baremetalds-metallb-e2e-test

The Baremtal DS E2E step executes the metallb end-to-end test suite.

Container image used for this step: src

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

Environment

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

Variable Name Type Variable Content
E2E_TESTS_CONFIG Parameter[?] Additional configuration. See https://github.com/openshift-metal3/dev-scripts/blob/918da5cba37ec38b47e67dbe08d53297e8dcb7ea/metallb/README.md for more details about supported values.

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

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

echo "************ baremetalds metallb e2e test command ************"

# shellcheck source=/dev/null
source "${SHARED_DIR}/packet-conf.sh"

echo "### Copying metallb directory"
scp "${SSHOPTS[@]}" -r /go/src/github.com/openshift/metallb "root@${IP}:/root/dev-scripts/metallb/"

# Inject additional variables directly.
run_e2e_command="make -C /root/dev-scripts/metallb run_e2e"
if [[ -n "${E2E_TESTS_CONFIG:-}" ]]; then
  readarray -t config <<< "${E2E_TESTS_CONFIG}"
  for var in "${config[@]}"; do
    if [[ ! -z "${var}" ]]; then
      run_e2e_command="${run_e2e_command} ${var}"
    fi
  done
fi

ssh "${SSHOPTS[@]}" "root@${IP}" ${run_e2e_command}

Properties

Property Value Description
Step timeout[?] 3h0m0s Limits the execution time of the step.
Termination grace period[?] 10m0s Period of time until SIGKILL signal is sent to the test pod (after SIGTERM signal is sent).
Resource requests (cpu) 3 Used in .resources.requests of the pod running this step.
Resource requests (memory) 600Mi Used in .resources.requests of the pod running this step.
Resource limits (memory) 2Gi Used in .resources.limits of the pod running this step.

GitHub Link:

https://github.com/openshift/release/blob/master/ci-operator/step-registry/baremetalds/metallb-e2e/test/baremetalds-metallb-e2e-test-ref.yaml

Owners:

Approvers:

Reviewers:

Source code for this page located on GitHub