flannel: set EnableNFTables when kube_proxy_mode use nftables (#13291)

* flannel: set EnableNFTables when kube_proxy_mode use nftables

* Clean up cni-flannel.yml.j2 by removing comments

Removed commented-out environment variable for cache readiness.

* update cni-flannel.yml.j2

---------

Co-authored-by: ric-mb <noreply@github.com>
This commit is contained in:
ICHx
2026-06-23 19:50:17 -07:00
committed by GitHub
parent 07960e8bb6
commit 60929432f5
@@ -37,6 +37,9 @@ data:
{% if ipv6_stack %}
"EnableIPv6": true,
"IPv6Network": "{{ kube_pods_subnet_ipv6 }}",
{% endif %}
{% if flannel_version is version('0.25.5', '>=') %}
"EnableNFTables": {{ (kube_proxy_mode == 'nftables') | bool | to_json }},
{% endif %}
"Backend": {
"Type": "{{ flannel_backend_type }}"{% if flannel_backend_type == "vxlan" %},