Skip to content

Commit

Permalink
fix calico tunl0 routes test (kubernetes-sigs#9061)
Browse files Browse the repository at this point in the history
Signed-off-by: cyclinder qifeng.guo@daocloud.io
  • Loading branch information
cyclinder authored and LuckySB committed Jul 7, 2023
1 parent 7de71de commit 0894ba3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testcases/040_check-network-adv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
- hosts: kube_node
tasks:
- name: Test tunl0 routes
shell: "set -o pipefail && ! /sbin/ip ro | grep '/26 via' | grep -v tunl0"
shell: "set -o pipefail && ! /sbin/ip ro | grep '/{{ calico_pool_blocksize}} | default(26) via' | grep -v tunl0"
args:
executable: /bin/bash
when:
- (ipip|default(true) or cloud_provider is defined)
- (calico_ipip_mode is defined and calico_ipip_mode != 'Never' or cloud_provider is defined)
- kube_network_plugin|default('calico') == 'calico'

- hosts: k8s_cluster
Expand Down

0 comments on commit 0894ba3

Please sign in to comment.