Skip to content
Snippets Groups Projects
Unverified Commit f1576eab authored by Etienne Champetier's avatar Etienne Champetier Committed by GitHub
Browse files

Calico: fixup check when ipipMode / vxlanMode is not present (#7195)


calicoctl.sh get ipPool default-pool -o json
{
  "kind": "IPPool",
  "apiVersion": "projectcalico.org/v3",
  "metadata": {
    "name": "default-pool",
...
  },
  "spec": {
    "cidr": "10.233.64.0/18",
    "ipipMode": "Always",
    "natOutgoing": true,
    "blockSize": 24,
    "nodeSelector": "all()"
  }
}

Signed-off-by: default avatarEtienne Champetier <champetier.etienne@gmail.com>
parent 49c4345c
Branches
Tags
No related merge requests found
...@@ -55,8 +55,8 @@ ...@@ -55,8 +55,8 @@
that: that:
- calico_pool_conf.spec.blockSize == (calico_pool_blocksize | default(kube_network_node_prefix)) - calico_pool_conf.spec.blockSize == (calico_pool_blocksize | default(kube_network_node_prefix))
- calico_pool_conf.spec.cidr == (calico_pool_cidr | default(kube_pods_subnet)) - calico_pool_conf.spec.cidr == (calico_pool_cidr | default(kube_pods_subnet))
- 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
- 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
msg: "Your inventory doesn't match the current cluster configuration" msg: "Your inventory doesn't match the current cluster configuration"
when: when:
- calico_pool_conf is defined - calico_pool_conf is defined
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment