From: ashishj1729 Date: Fri, 3 Oct 2025 07:17:36 +0000 (+0530) Subject: Upgrade Calico Version to 3.30.1: X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=786430e6023b4640d5e3d3aff92bf25ebb3cbdaa;p=aiml-fw%2Faimlfw-dep.git Upgrade Calico Version to 3.30.1: Upgrading Calico Version from 3.25 to 3.30.1 which is compatible to k8s v1.32.8 Issue-Id: AIMLFW-250 Change-Id: I4505adbc99a5756e6efb71b2325a243e7000d1c1 Signed-off-by: ashishj1729 --- diff --git a/tools/kubernetes/install_k8s.sh b/tools/kubernetes/install_k8s.sh index 383ef36..f3e11d6 100755 --- a/tools/kubernetes/install_k8s.sh +++ b/tools/kubernetes/install_k8s.sh @@ -22,6 +22,7 @@ is_wsl() { K8S_VERSION=1.32 K8S_MINOR_VERSION=8 KUSTOMIZE_VERSION=5.5.0 +CALICO_VERSION=3.30.1 NERDCTL_VERSION=1.7.6 # see https://github.com/containerd/nerdctl/releases for the latest release BUILDKIT_VERSION=0.13.2 # see https://github.com/moby/buildkit/releases for the latest release @@ -88,17 +89,11 @@ if is_wsl; then kubectl apply -f kube-flannel.yml else echo "Non-WSL environment — Calico CNI" - curl -fSL https://projectcalico.docs.tigera.io/manifests/calico.yaml -o calico.yaml - if grep -q 'apiVersion: policy/v1beta1' calico.yaml; then - sed -i 's/apiVersion: policy\/v1beta1/apiVersion: policy\/v1/g' calico.yaml - fi - kubectl apply -f calico.yaml + kubectl apply -f https://raw.githubusercontent.com/projectcalico/calico/v$CALICO_VERSION/manifests/calico.yaml fi echo "Installation completed for kubernetes!" # install nerdctl - - archType="amd64" if test "$(uname -m)" = "aarch64" then