From 6aa283d60dfdca6c7ac10e33af5d9887a4fcaf93 Mon Sep 17 00:00:00 2001 From: Dustin Specker Date: Fri, 3 Jun 2022 12:04:40 -0500 Subject: [PATCH] follow redirects when downloading calico manifests When attempting to use Calico v3.23, docs.projectcalico.org is redirected to projectcalico.docs.tigera.io. Calico v3.20 does not exist at the new URL, so following redirects to handle both cases. Change-Id: I251ced47224f2c1d369cb6acf68784cf3351ade0 --- tools/gate/deploy-k8s.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/gate/deploy-k8s.sh b/tools/gate/deploy-k8s.sh index 605437312..bcc5b5d88 100755 --- a/tools/gate/deploy-k8s.sh +++ b/tools/gate/deploy-k8s.sh @@ -187,7 +187,7 @@ sudo -E systemctl enable --now kubelet sudo -E minikube addons list -curl https://docs.projectcalico.org/"${CALICO_VERSION}"/manifests/calico.yaml -o /tmp/calico.yaml +curl -L https://docs.projectcalico.org/"${CALICO_VERSION}"/manifests/calico.yaml -o /tmp/calico.yaml sed -i -e 's#docker.io/calico/#quay.io/calico/#g' /tmp/calico.yaml