check kube_pods_subnet and kube_service_addresses to valid ip network range, not single ip address (#4188)
This commit is contained in:
parent
954676b3d8
commit
fbce6349c4
1 changed files with 4 additions and 4 deletions
|
@ -160,15 +160,15 @@
|
||||||
- name: "Check that kube_service_addresses is a network range"
|
- name: "Check that kube_service_addresses is a network range"
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- kube_service_addresses | ipaddr
|
- kube_service_addresses | ipaddr('net')
|
||||||
msg: "kube_service_addresses is not a valid network range"
|
msg: "kube_service_addresses = '{{ kube_service_addresses }}' is not a valid network range"
|
||||||
run_once: yes
|
run_once: yes
|
||||||
|
|
||||||
- name: "Check that kube_pods_subnet is a network range"
|
- name: "Check that kube_pods_subnet is a network range"
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- kube_pods_subnet | ipaddr
|
- kube_pods_subnet | ipaddr('net')
|
||||||
msg: "kube_pods_subnet is not a valid network range"
|
msg: "kube_pods_subnet = '{{ kube_pods_subnet }}' is not a valid network range"
|
||||||
run_once: yes
|
run_once: yes
|
||||||
|
|
||||||
- name: "Check that kube_pods_subnet does not collide with kube_service_addresses"
|
- name: "Check that kube_pods_subnet does not collide with kube_service_addresses"
|
||||||
|
|
Loading…
Reference in a new issue