fix: when IPv6 is enabled cilium l2 CRs are not needed

Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
Devin Buhl committed 2023-07-17 17:25:15 -04:00
1 parent 9391b0f15f
commit cf34c795b6
2 files changed
+2 -2

No files matched your search

@@ -26,7 +26,7 @@ k3s_server_manifests_urls:
# /var/lib/rancher/k3s/server/manifests # /var/lib/rancher/k3s/server/manifests
k3s_server_manifests_templates: k3s_server_manifests_templates:
- custom-cilium-helmchart.yaml.j2 - custom-cilium-helmchart.yaml.j2
{% if bootstrap_ipv6_enabled | default(false) %} {% if not bootstrap_ipv6_enabled | default(false) %}
- custom-cilium-l2.yaml.j2 - custom-cilium-l2.yaml.j2
{% endif %} {% endif %}
- custom-coredns-helmchart.yaml.j2 - custom-coredns-helmchart.yaml.j2
@@ -48,7 +48,7 @@
loop: loop:
- { name: cilium, kind: HelmChart, namespace: kube-system } - { name: cilium, kind: HelmChart, namespace: kube-system }
- { name: coredns, kind: HelmChart, namespace: kube-system } - { name: coredns, kind: HelmChart, namespace: kube-system }
{% if bootstrap_ipv6_enabled | default(false) %} {% if not bootstrap_ipv6_enabled | default(false) %}
- { name: policy, kind: CiliumL2AnnouncementPolicy } - { name: policy, kind: CiliumL2AnnouncementPolicy }
- { name: pool, kind: CiliumLoadBalancerIPPool } - { name: pool, kind: CiliumLoadBalancerIPPool }
{% endif %} {% endif %}