From 1231ce7e98d3f78a0b5469b908eeefc8d2fe8057 Mon Sep 17 00:00:00 2001 From: "Shiva Kumar (SW-CLOUD)" Date: Mon, 8 Sep 2025 21:46:59 +0530 Subject: [PATCH] Fix default exist error for tigera and custom-resource Signed-off-by: Shiva Kumar (SW-CLOUD) --- pkg/provisioner/templates/kubernetes.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/provisioner/templates/kubernetes.go b/pkg/provisioner/templates/kubernetes.go index 661151c9c..611c7a3ef 100644 --- a/pkg/provisioner/templates/kubernetes.go +++ b/pkg/provisioner/templates/kubernetes.go @@ -127,7 +127,7 @@ with_retry 10 30s kubectl --kubeconfig $KUBECONFIG version # Install Calico # based on https://docs.tigera.io/calico/latest/getting-started/kubernetes/quickstart echo "Installing Calico ${CALICO_VERSION}..." -with_retry 3 10s kubectl get installation default -n tigera-operator || kubectl --kubeconfig $KUBECONFIG create -f https://raw.githubusercontent.com/projectcalico/calico/${CALICO_VERSION}/manifests/tigera-operator.yaml +with_retry 3 10s kubectl --kubeconfig $KUBECONFIG create -f https://raw.githubusercontent.com/projectcalico/calico/${CALICO_VERSION}/manifests/tigera-operator.yaml # Wait for Tigera operator to be ready echo "Waiting for Tigera operator to be ready..." @@ -135,7 +135,7 @@ with_retry 10 30s kubectl --kubeconfig $KUBECONFIG wait --for=condition=availabl # Install Calico custom resources echo "Installing Calico custom resources..." -with_retry 3 10s kubectl get installation default -n tigera-operator || kubectl --kubeconfig $KUBECONFIG create -f https://raw.githubusercontent.com/projectcalico/calico/${CALICO_VERSION}/manifests/custom-resources.yaml +with_retry 3 10s kubectl --kubeconfig $KUBECONFIG get installations.operator.tigera.io default -n tigera-operator || kubectl --kubeconfig $KUBECONFIG apply -f https://raw.githubusercontent.com/projectcalico/calico/${CALICO_VERSION}/manifests/custom-resources.yaml # Wait for Calico to be ready echo "Waiting for Calico to be ready..."