Skip to content

Commit

Permalink
Merge pull request #4236 from spidernet-io/robot/cherrypick/pr4234/re…
Browse files Browse the repository at this point in the history
…lease-v0.9

e2e fix: the latest version of calico cannot find the felixconfigurations resource
  • Loading branch information
ty-dc authored Oct 30, 2024
2 parents 6d707dc + c259dcf commit 692191a
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 692191a

Please sign in to comment.