diff --git a/ci-operator/templates/openshift/installer/cluster-launch-installer-e2e.yaml b/ci-operator/templates/openshift/installer/cluster-launch-installer-e2e.yaml index a1f4efd6a7ea5..94018ba345127 100644 --- a/ci-operator/templates/openshift/installer/cluster-launch-installer-e2e.yaml +++ b/ci-operator/templates/openshift/installer/cluster-launch-installer-e2e.yaml @@ -115,8 +115,6 @@ objects: trap 'touch /tmp/shared/exit' EXIT trap 'kill $(jobs -p); exit 0' TERM - cp "$(which oc)" /tmp/shared/ - mkdir -p "${HOME}" # wait for the API to come up @@ -241,6 +239,7 @@ objects: trap 'rc=$?; if test "${rc}" -eq 0; then touch /tmp/setup-success; else touch /tmp/exit; fi; exit "${rc}"' EXIT trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN} && wait; fi' TERM + cp "$(command -v openshift-install)" /tmp mkdir /tmp/artifacts/installer && /bin/openshift-install version >/tmp/artifacts/installer/version @@ -303,12 +302,12 @@ objects: exit 1 fi - TF_LOG=debug /bin/openshift-install --dir=/tmp/artifacts/installer create cluster & + TF_LOG=debug openshift-install --dir=/tmp/artifacts/installer create cluster & wait "$!" # Performs cleanup of all created resources - name: teardown - image: ${IMAGE_INSTALLER} + image: ${IMAGE_TESTS} terminationMessagePolicy: FallbackToLogsOnError volumeMounts: - name: shared-tmp diff --git a/ci-operator/templates/openshift/installer/cluster-launch-installer-src.yaml b/ci-operator/templates/openshift/installer/cluster-launch-installer-src.yaml index 723c4778fd78d..fec25774f0b8b 100644 --- a/ci-operator/templates/openshift/installer/cluster-launch-installer-src.yaml +++ b/ci-operator/templates/openshift/installer/cluster-launch-installer-src.yaml @@ -18,6 +18,8 @@ parameters: required: true - name: IMAGE_FORMAT required: true +- name: IMAGE_TESTS + required: true - name: CLUSTER_TYPE required: true # Ensures the release image is created and tested @@ -211,6 +213,7 @@ objects: trap 'rc=$?; if test "${rc}" -eq 0; then touch /tmp/setup-success; else touch /tmp/exit; fi; exit "${rc}"' EXIT trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN} && wait; fi' TERM + cp "$(command -v openshift-install)" /tmp mkdir /tmp/artifacts/installer && /bin/openshift-install version >/tmp/artifacts/installer/version @@ -273,12 +276,12 @@ objects: exit 1 fi - TF_LOG=debug /bin/openshift-install --dir=/tmp/artifacts/installer create cluster & + TF_LOG=debug openshift-install --dir=/tmp/artifacts/installer create cluster & wait "$!" # Performs cleanup of all created resources - name: teardown - image: ${IMAGE_INSTALLER} + image: ${IMAGE_TESTS} terminationMessagePolicy: FallbackToLogsOnError volumeMounts: - name: shared-tmp diff --git a/ci-operator/templates/openshift/openshift-ansible/cluster-scaleup-e2e-40.yaml b/ci-operator/templates/openshift/openshift-ansible/cluster-scaleup-e2e-40.yaml index 03195c2604d04..e9a2b5cb18171 100644 --- a/ci-operator/templates/openshift/openshift-ansible/cluster-scaleup-e2e-40.yaml +++ b/ci-operator/templates/openshift/openshift-ansible/cluster-scaleup-e2e-40.yaml @@ -118,7 +118,7 @@ objects: trap 'touch /tmp/shared/exit' EXIT trap 'kill $(jobs -p); exit 0' TERM - cp "$(which oc)" /tmp/shared/ + cp "$(command -v oc)" /tmp/shared/ mkdir -p "${HOME}" @@ -304,6 +304,7 @@ objects: trap 'rc=$?; if test "${rc}" -eq 0; then touch /tmp/setup-success; else touch /tmp/exit; fi; exit "${rc}"' EXIT trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN} && wait; fi' TERM + cp "$(command -v openshift-install)" /tmp mkdir /tmp/artifacts/installer && /bin/openshift-install version >/tmp/artifacts/installer/version @@ -366,7 +367,7 @@ objects: exit 1 fi - /bin/openshift-install --dir=/tmp/artifacts/installer create cluster --log-level=debug & + openshift-install --dir=/tmp/artifacts/installer create cluster --log-level=debug & wait "$!" # Runs scale up playbook @@ -411,7 +412,7 @@ objects: # Performs cleanup of all created resources - name: teardown - image: ${IMAGE_INSTALLER} + image: ${IMAGE_TESTS} terminationMessagePolicy: FallbackToLogsOnError volumeMounts: - name: shared-tmp