Skip to content

Commit

Permalink
Remove Calico and associated variables
Browse files Browse the repository at this point in the history
* Drop support for Calico CNI
  • Loading branch information
dghubble committed Dec 29, 2024
1 parent 0d3f173 commit 79b8ae1
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 4,859 deletions.
23 changes: 0 additions & 23 deletions conditional.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,6 @@ locals {
if var.components.enable && var.components.flannel.enable && var.networking == "flannel"
}

# calico manifests map
# { manifests-networking/manifest.yaml => content }
calico_manifests = {
for name in fileset("${path.module}/resources/calico", "*.yaml") :
"manifests/network/${name}" => templatefile(
"${path.module}/resources/calico/${name}",
{
calico_image = var.container_images["calico"]
calico_cni_image = var.container_images["calico_cni"]
network_mtu = var.network_mtu
network_encapsulation = indent(2, var.network_encapsulation == "vxlan" ? "vxlanMode: Always" : "ipipMode: Always")
ipip_enabled = var.network_encapsulation == "ipip" ? true : false
ipip_readiness = var.network_encapsulation == "ipip" ? indent(16, "- --bird-ready") : ""
vxlan_enabled = var.network_encapsulation == "vxlan" ? true : false
network_ip_autodetection_method = var.network_ip_autodetection_method
pod_cidr = var.pod_cidr
enable_reporting = var.enable_reporting
daemonset_tolerations = var.daemonset_tolerations
}
)
if var.components.enable && var.components.calico.enable && var.networking == "calico"
}

# cilium manifests map
# { manifests-networking/manifest.yaml => content }
cilium_manifests = {
Expand Down
27 changes: 0 additions & 27 deletions resources/calico/cluster-role-binding.yaml

This file was deleted.

183 changes: 0 additions & 183 deletions resources/calico/cluster-role.yaml

This file was deleted.

46 changes: 0 additions & 46 deletions resources/calico/config.yaml

This file was deleted.

Loading

0 comments on commit 79b8ae1

Please sign in to comment.