Refactor: simpify cloud_provider is defined condition

For this change, `cloud_provider` change the default value to empty
string.

Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
This commit is contained in:
ChengHao Yang
2024-11-05 00:30:04 +08:00
parent c27cc33bd7
commit 38cd05c503
7 changed files with 9 additions and 12 deletions

View File

@@ -7,7 +7,7 @@
args:
executable: /bin/bash
when:
- (calico_ipip_mode is defined and calico_ipip_mode != 'Never' or cloud_provider is defined)
- (calico_ipip_mode is defined and calico_ipip_mode != 'Never')
- kube_network_plugin | default('calico') == 'calico'
- name: Advanced testcases for network