Skip to content
Snippets Groups Projects
Unverified Commit 2b5c1858 authored by emiran-orange's avatar emiran-orange Committed by GitHub
Browse files

calico_pool_blocksize must be cast as well in assertion when defined (#8321)

* calico_pool_blocksize must be cast as string in assertion when defined

* Cast as int rather than string
parent 996ecca7
No related branches found
No related tags found
No related merge requests found
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
- name: "Check if inventory match current cluster configuration" - name: "Check if inventory match current cluster configuration"
assert: assert:
that: that:
- calico_pool_conf.spec.blockSize|string == (calico_pool_blocksize | default(kube_network_node_prefix | string)) - calico_pool_conf.spec.blockSize|int == (calico_pool_blocksize | default(kube_network_node_prefix) | int)
- calico_pool_conf.spec.cidr == (calico_pool_cidr | default(kube_pods_subnet)) - 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.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 - not calico_pool_conf.spec.vxlanMode is defined or calico_pool_conf.spec.vxlanMode == calico_vxlan_mode
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment