Skip to content
Snippets Groups Projects
Commit 320f4d4d authored by Gautam Divgi's avatar Gautam Divgi Committed by Kubernetes Prow Robot
Browse files

Added filters for integer conversion of kubelet_max_pods and kube_network_node_prefix (#3857)

parent 16715adf
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,7 @@
# NOTICE: the check blatantly ignores the inet6-case
- name: Guarantee that enough network address space is available for all pods
assert:
that: "{{ kubelet_max_pods | default(110) <= (2 ** (32 - kube_network_node_prefix)) - 2 }}"
that: "{{ (kubelet_max_pods | default(110)) | int <= (2 ** (32 - kube_network_node_prefix | int)) - 2 }}"
msg: "Do not schedule more pods on a node than inet addresses are available."
ignore_errors: "{{ ignore_assert_errors }}"
when:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment