From 74ecf483bb3325945206afa0b4f6ad458a367c76 Mon Sep 17 00:00:00 2001 From: "Shiva Kumar (SW-CLOUD)" Date: Sat, 6 Sep 2025 12:41:32 +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 c7875f8f3..661151c9c 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 --kubeconfig $KUBECONFIG create -f https://raw.githubusercontent.com/projectcalico/calico/${CALICO_VERSION}/manifests/tigera-operator.yaml +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 # 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 --kubeconfig $KUBECONFIG create -f https://raw.githubusercontent.com/projectcalico/calico/${CALICO_VERSION}/manifests/custom-resources.yaml +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 # Wait for Calico to be ready echo "Waiting for Calico to be ready..."