From 3b728f5d5d11ee3552cb38f8054a11c908415394 Mon Sep 17 00:00:00 2001 From: lou-lan Date: Mon, 4 Nov 2024 11:55:16 +0800 Subject: [PATCH] Update Calico installation script to support v3.29.0 Signed-off-by: lou-lan --- test/scripts/installCalico.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/scripts/installCalico.sh b/test/scripts/installCalico.sh index ae7b68fc5..dd0662fcf 100644 --- a/test/scripts/installCalico.sh +++ b/test/scripts/installCalico.sh @@ -107,7 +107,8 @@ case ${E2E_IP_FAMILY} in exit 1 esac -kubectl patch felixconfigurations.crd.projectcalico.org default --type='merge' -p '{"spec":{"chainInsertMode":"Append"}}' || { echo "failed to patch calico chainInsertMode"; exit 1; } +# there no default felixconfigurations.crd.projectcalico.org in latest calico version (https://github.com/projectcalico/calico/releases/tag/v3.29.0) +kubectl patch felixconfigurations.crd.projectcalico.org default --type='merge' -p '{"spec":{"chainInsertMode":"Append"}}' || true if [[ ${E2E_IP_FAMILY} != "ipv4" ]]; then ok=no for i in {1..10}; do