From 9536649c45555b151c84c887623a6779ccfe3a44 Mon Sep 17 00:00:00 2001 From: ewezy Date: Sat, 16 Nov 2024 02:51:56 +0800 Subject: [PATCH] Add additional steps to allow resolving of local e2e image repository --- scripts/e2e/setup-cluster.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/e2e/setup-cluster.sh b/scripts/e2e/setup-cluster.sh index 279bcbbbb..4a50183e6 100755 --- a/scripts/e2e/setup-cluster.sh +++ b/scripts/e2e/setup-cluster.sh @@ -103,6 +103,12 @@ install_knative() { kubectl rollout status deployment/domainmapping-webhook -n knative-serving -w --timeout=${TIMEOUT} kubectl rollout status deployment/webhook -n knative-serving -w --timeout=${TIMEOUT} + # Update knative config-deployment config map to allow resolving of the local e2e image repository + kubectl get configmap -n knative-serving config-deployment -o yaml > temp.yaml + yq -i '.data.registries-skipping-tag-resolving |= ("\(.),${DOCKER_REGISTRY}" | envsubst)' temp.yaml + kubectl apply -f temp.yaml + kubectl rollout restart deployment -n knative-serving controller + # Install knative-istio kubectl apply -f https://github.com/knative-sandbox/net-istio/releases/download/knative-v${KNATIVE_NET_ISTIO_VERSION}/net-istio.yaml