Upgrade Calico Version to 3.30.1: 06/15106/3
authorashishj1729 <jain.ashish@samsung.com>
Fri, 3 Oct 2025 07:17:36 +0000 (12:47 +0530)
committerAshish Jain <jain.ashish@samsung.com>
Mon, 13 Oct 2025 18:08:02 +0000 (18:08 +0000)
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 <jain.ashish@samsung.com>
tools/kubernetes/install_k8s.sh

index 383ef36..f3e11d6 100755 (executable)
@@ -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