Skip to content

Commit

Permalink
calico_pool_blocksize must be cast as well in assertion when defined (k…
Browse files Browse the repository at this point in the history
…ubernetes-sigs#8321)

* calico_pool_blocksize must be cast as string in assertion when defined

* Cast as int rather than string
  • Loading branch information
emiran-orange authored and LuckySB committed Jun 29, 2023
1 parent 44f67c9 commit 8e8a369
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/network_plugin/calico/tasks/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
- name: "Check if inventory match current cluster configuration"
assert:
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))
- 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
Expand Down

0 comments on commit 8e8a369

Please sign in to comment.