From 34c05f84d17b65ab357cd2ef074c9ddae2d20eb8 Mon Sep 17 00:00:00 2001 From: Cecile Robert-Michon Date: Fri, 27 Jan 2023 22:40:55 +0000 Subject: [PATCH] Remove Calico felix override workaround --- Tiltfile | 2 +- docs/book/src/topics/addons.md | 3 --- scripts/ci-entrypoint.sh | 4 ---- templates/addons/calico/felix-override.yaml | 8 -------- test/e2e/cni.go | 10 ---------- 5 files changed, 1 insertion(+), 26 deletions(-) delete mode 100644 templates/addons/calico/felix-override.yaml diff --git a/Tiltfile b/Tiltfile index 05245778e4a..9a3abf869f4 100644 --- a/Tiltfile +++ b/Tiltfile @@ -363,7 +363,7 @@ def deploy_worker_templates(template, substitutions): calico_values = "./templates/addons/calico-dual-stack/values.yaml" else: calico_values = "./templates/addons/calico/values.yaml" - flavor_cmd += "; " + helm_cmd + " repo add projectcalico https://projectcalico.docs.tigera.io/charts; " + helm_cmd + " --kubeconfig ./${CLUSTER_NAME}.kubeconfig install calico projectcalico/tigera-operator -f " + calico_values + " --namespace tigera-operator --create-namespace; kubectl --kubeconfig ./${CLUSTER_NAME}.kubeconfig apply -f ./templates/addons/calico/felix-override.yaml" + flavor_cmd += "; " + helm_cmd + " repo add projectcalico https://projectcalico.docs.tigera.io/charts; " + helm_cmd + " --kubeconfig ./${CLUSTER_NAME}.kubeconfig install calico projectcalico/tigera-operator -f " + calico_values + " --namespace tigera-operator --create-namespace" if "external-cloud-provider" in flavor_name: flavor_cmd += "; " + helm_cmd + " --kubeconfig ./${CLUSTER_NAME}.kubeconfig install --repo https://raw.githubusercontent.com/kubernetes-sigs/cloud-provider-azure/master/helm/repo cloud-provider-azure --generate-name --set infra.clusterName=${CLUSTER_NAME}" local_resource( diff --git a/docs/book/src/topics/addons.md b/docs/book/src/topics/addons.md index 411b51887cb..97517d9ca3b 100644 --- a/docs/book/src/topics/addons.md +++ b/docs/book/src/topics/addons.md @@ -30,7 +30,6 @@ Then install the Helm chart on the workload cluster: ```bash helm repo add projectcalico https://projectcalico.docs.tigera.io/charts && \ helm install calico projectcalico/tigera-operator -f https://raw.githubusercontent.com/kubernetes-sigs/cluster-api-provider-azure/main/templates/addons/calico/values.yaml --set-string "installation.calicoNetwork.ipPools[0].cidr=${IPV4_CIDR_BLOCK}" --namespace tigera-operator --create-namespace -kubectl apply -f https://raw.githubusercontent.com/kubernetes-sigs/cluster-api-provider-azure/main/templates/addons/calico/felix-override.yaml ``` ### For IPv6 Clusters @@ -46,7 +45,6 @@ Then install the Helm chart on the workload cluster: ```bash helm repo add projectcalico https://projectcalico.docs.tigera.io/charts && \ helm install calico projectcalico/tigera-operator -f https://raw.githubusercontent.com/kubernetes-sigs/cluster-api-provider-azure/main/templates/addons/calico-ipv6/values.yaml --set-string "installation.calicoNetwork.ipPools[0].cidr=${IPV6_CIDR_BLOCK}" --namespace tigera-operator --create-namespace -kubectl apply -f https://raw.githubusercontent.com/kubernetes-sigs/cluster-api-provider-azure/main/templates/addons/calico/felix-override.yaml ``` ### For Dual-Stack Clusters @@ -63,7 +61,6 @@ Then install the Helm chart on the workload cluster: ```bash helm repo add projectcalico https://projectcalico.docs.tigera.io/charts && \ helm install calico projectcalico/tigera-operator -f https://raw.githubusercontent.com/kubernetes-sigs/cluster-api-provider-azure/main/templates/addons/calico-dual-stack/values.yaml --set-string "installation.calicoNetwork.ipPools[0].cidr=${IPV4_CIDR_BLOCK}","installation.calicoNetwork.ipPools[1].cidr=${IPV6_CIDR_BLOCK}" --namespace tigera-operator --create-namespace -kubectl apply -f https://raw.githubusercontent.com/kubernetes-sigs/cluster-api-provider-azure/main/templates/addons/calico/felix-override.yaml ```