mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 13:54:37 +03:00
Fix Calico's FelixConfiguration when "IP in IP" is disabled (#7926)
When using Calico with:
- `calico_network_backend: vxlan`,
- `calico_ipip_mode: "Never"`,
- `calico_vxlan_mode: "Always"`,
the `FelixConfiguration` object has `ipipEnabled: true`, when it should be false:
This is caused by an error in the `| bool` conversion in the install task:
when `calico_ipip_mode` is `Never`,
`{{ calico_ipip_mode != 'Never' | bool }}` evaluates to `true`:
This commit is contained in:
@@ -153,7 +153,7 @@
|
|||||||
"name": "default",
|
"name": "default",
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"ipipEnabled": {{ calico_ipip_mode != 'Never' | bool }},
|
"ipipEnabled": {{ calico_ipip_mode != 'Never' }},
|
||||||
"reportingInterval": "{{ calico_felix_reporting_interval }}",
|
"reportingInterval": "{{ calico_felix_reporting_interval }}",
|
||||||
"bpfLogLevel": "{{ calico_bpf_log_level }}",
|
"bpfLogLevel": "{{ calico_bpf_log_level }}",
|
||||||
"bpfEnabled": {{ calico_bpf_enabled | bool }},
|
"bpfEnabled": {{ calico_bpf_enabled | bool }},
|
||||||
|
|||||||
Reference in New Issue
Block a user