diff --git a/ci-operator/config/openshift/windows-machine-config-operator/openshift-windows-machine-config-operator-master.yaml b/ci-operator/config/openshift/windows-machine-config-operator/openshift-windows-machine-config-operator-master.yaml index 7421d3b779004..cfba498c4376f 100644 --- a/ci-operator/config/openshift/windows-machine-config-operator/openshift-windows-machine-config-operator-master.yaml +++ b/ci-operator/config/openshift/windows-machine-config-operator/openshift-windows-machine-config-operator-master.yaml @@ -89,6 +89,7 @@ tests: COMPUTE_NODE_REPLICAS: "1" CONTROL_PLANE_REPLICAS: "1" test: + - ref: windows-ote-setup - ref: windows-e2e-operator-test workflow: ipi-aws-ovn-hybrid - always_run: false diff --git a/ci-operator/step-registry/windows/ote-setup/OWNERS b/ci-operator/step-registry/windows/ote-setup/OWNERS new file mode 100644 index 0000000000000..9fe3dd4ab92f8 --- /dev/null +++ b/ci-operator/step-registry/windows/ote-setup/OWNERS @@ -0,0 +1,4 @@ +approvers: +- winc-approvers +reviewers: +- winc-reviewers diff --git a/ci-operator/step-registry/windows/ote-setup/windows-ote-setup-commands.sh b/ci-operator/step-registry/windows/ote-setup/windows-ote-setup-commands.sh new file mode 100755 index 0000000000000..b130627b1387b --- /dev/null +++ b/ci-operator/step-registry/windows/ote-setup/windows-ote-setup-commands.sh @@ -0,0 +1,53 @@ +#!/bin/bash + +set -o nounset +set -o errexit +set -o pipefail + +WMCO_NS="openshift-windows-machine-config-operator" + +# OPERATOR_IMAGE is the WMCO CI image built from Dockerfile.ci, which includes +# wmco-tests-ext.gz at /usr/bin/wmco-tests-ext.gz +if [[ -z "${OPERATOR_IMAGE:-}" ]]; then + echo "ERROR: OPERATOR_IMAGE is not set, cannot set up OTE" + exit 1 +fi + +echo "Setting up WMCO OTE non-payload binary registration..." +echo "WMCO image: ${OPERATOR_IMAGE}" + +# Create the WMCO namespace if it does not yet exist. +# WMCO may not be deployed at this point; we create the namespace so the +# ImageStream can be set up before the operator is installed. +oc create namespace "$WMCO_NS" --dry-run=client -o yaml | oc apply -f - + +# Create ImageStream in the WMCO namespace +oc apply -n "$WMCO_NS" -f - <