From 87936ec4788d098f876739b37f0ded35d0978ad7 Mon Sep 17 00:00:00 2001 From: Flavius Lacatusu Date: Fri, 9 Apr 2021 09:33:42 +0200 Subject: [PATCH] Fix single-host tests for che-operator (#765) Signed-off-by: Flavius Lacatusu --- .github/bin/common.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/bin/common.sh b/.github/bin/common.sh index deca39ba8..03166e03d 100755 --- a/.github/bin/common.sh +++ b/.github/bin/common.sh @@ -34,7 +34,7 @@ initDefaults() { export OPERATOR_IMAGE="test/che-operator:test" export DEFAULT_DEVFILE="https://raw.githubusercontent.com/eclipse/che-devfile-registry/master/devfiles/quarkus/devfile.yaml" export CHE_EXPOSURE_STRATEGY="multi-host" - + export DEV_WORKSPACE_CONTROLLER_VERSION="main" export OAUTH="false" # turn off telemetry @@ -52,6 +52,11 @@ initOpenShiftDefaults() { } initLatestTemplates() { +curl -L https://api.github.com/repos/devfile/devworkspace-operator/zipball/${DEV_WORKSPACE_CONTROLLER_VERSION} > /tmp/devworkspace-operator.zip && \ + unzip /tmp/devworkspace-operator.zip */deploy/deployment/* -d /tmp && \ + mkdir -p /tmp/devworkspace-operator/templates/ && \ + mv /tmp/devfile-devworkspace-operator-*/deploy ${TEMPLATES}/devworkspace + cp -rf ${OPERATOR_REPO}/deploy/* "${TEMPLATES}/che-operator" }