Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
cardil committed Jul 19, 2024
1 parent c1b7c4b commit 728ad4b
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion test/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<EOF >"${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() {
Expand Down

0 comments on commit 728ad4b

Please sign in to comment.