Skip to content

Commit

Permalink
Merge pull request spidernet-io#4234 from ty-dc/fix/calico-update
Browse files Browse the repository at this point in the history
e2e fix: the latest version of calico cannot find the felixconfigurations resource

Signed-off-by: robot <[email protected]>
  • Loading branch information
weizhoublue authored and ty-dc committed Oct 30, 2024
1 parent 34d7504 commit 68acf8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/scripts/install-default-cni.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ function install_calico() {
echo "the value of E2E_IP_FAMILY: ipv4 or ipv6 or dual"
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

# restart calico pod
kubectl -n kube-system delete pod -l k8s-app=calico-node --force --grace-period=0 && sleep 3
Expand Down

0 comments on commit 68acf8a

Please sign in to comment.