From d42b7228c2a8ca37b8d761efe2ed10960baf4c82 Mon Sep 17 00:00:00 2001 From: Julio H Morimoto Date: Sun, 24 Oct 2021 15:42:21 -0300 Subject: [PATCH] Convert numbers to string for calico's inventory check. (#8120) Fix https://github.com/kubernetes-sigs/kubespray/issues/8119 Signed-off-by: Julio Morimoto --- roles/network_plugin/calico/tasks/check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/network_plugin/calico/tasks/check.yml b/roles/network_plugin/calico/tasks/check.yml index a0a656707..8d72448b8 100644 --- a/roles/network_plugin/calico/tasks/check.yml +++ b/roles/network_plugin/calico/tasks/check.yml @@ -53,7 +53,7 @@ - name: "Check if inventory match current cluster configuration" assert: that: - - calico_pool_conf.spec.blockSize == (calico_pool_blocksize | default(kube_network_node_prefix)) + - calico_pool_conf.spec.blockSize|string == (calico_pool_blocksize | default(kube_network_node_prefix | string)) - calico_pool_conf.spec.cidr == (calico_pool_cidr | default(kube_pods_subnet)) - not calico_pool_conf.spec.ipipMode is defined or calico_pool_conf.spec.ipipMode == calico_ipip_mode - not calico_pool_conf.spec.vxlanMode is defined or calico_pool_conf.spec.vxlanMode == calico_vxlan_mode