From 728ad4b4128a2f15668e5861ab5d6ac7b0cad7ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chris=20Suszy=C5=84ski?= Date: Fri, 19 Jul 2024 12:08:26 +0200 Subject: [PATCH] Walkaround for knative-extensions/net-istio#1345 --- test/common.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/test/common.sh b/test/common.sh index cb824b598f..81f8cdc57b 100755 --- a/test/common.sh +++ b/test/common.sh @@ -58,8 +58,21 @@ function install_istio() { echo ">> Installing Istio" echo "Istio version: ${ISTIO_VERSION}" echo "Istio profile: ${ISTIO_PROFILE}" - ${NET_ISTIO_DIR}/third_party/istio-${ISTIO_VERSION}/install-istio.sh ${ISTIO_PROFILE} + # TODO: Hack to walkaround knative-extensions/net-istio#1345 + local net_istio_script library_path + net_istio_script="$(mktemp)" + library_path="$(go run knative.dev/hack/cmd/script library.sh)" + cat <"${net_istio_script}" +#!/bin/bash +set -Eeuo pipefail + +source "$library_path" +"${NET_ISTIO_DIR}/third_party/istio-${ISTIO_VERSION}/install-istio.sh" "${ISTIO_PROFILE}" +EOF + chmod +x "${net_istio_script}" + "${net_istio_script}" + rm -f "${net_istio_script}" } function knative_setup() {