Don't check address space when using 'none' network plugin

Since 'none' can be, for instance, a manual calico deployment, don't
check whether there is enough ip for pods on a node, because the plugin
can use another mechanism than the podCIDR to allocate IPs.
This commit is contained in:
Max Gautier
2025-01-20 10:38:19 +01:00
parent 98cdb5348c
commit 85d9e3e2ae

View File

@@ -112,8 +112,7 @@
when:
- not ignore_assert_errors
- ('k8s_cluster' in group_names)
- kube_network_node_prefix is defined
- kube_network_plugin != 'calico'
- kube_network_plugin not in ['calico', 'none']
- name: Stop if ip var does not match local ips
assert: