From b3a66f2ec8d9eee60046b1b1860a15de56e928c9 Mon Sep 17 00:00:00 2001 From: Tariq Ibrahim Date: Mon, 16 Dec 2024 19:01:06 -0600 Subject: [PATCH] use kubectl create to provision calico CRDs Signed-off-by: Tariq Ibrahim --- pkg/provisioner/templates/kubernetes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/provisioner/templates/kubernetes.go b/pkg/provisioner/templates/kubernetes.go index 2689a60ed..f85fc93d9 100644 --- a/pkg/provisioner/templates/kubernetes.go +++ b/pkg/provisioner/templates/kubernetes.go @@ -95,7 +95,7 @@ export KUBECONFIG="${HOME}/.kube/config" # Install Calico # based on https://docs.tigera.io/calico/latest/getting-started/kubernetes/quickstart -with_retry 3 10s kubectl --kubeconfig $KUBECONFIG apply -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 # Calico CRDs created. Now we sleep for 10s to ensure they are fully registered in the K8s etcd sleep 10s with_retry 3 10s kubectl --kubeconfig $KUBECONFIG apply -f https://raw.githubusercontent.com/projectcalico/calico/${CALICO_VERSION}/manifests/custom-resources.yaml