From a99a27e8511ce42a5cae931e3859c658b68b2647 Mon Sep 17 00:00:00 2001 From: Max Gautier Date: Wed, 11 Oct 2023 19:07:06 +0200 Subject: [PATCH] Cleanup a deprecation warning (ipaddr filter) --- galaxy.yml | 2 ++ roles/network_plugin/calico/tasks/install.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/galaxy.yml b/galaxy.yml index 497ac44b94b..a0df3882c4d 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -9,6 +9,8 @@ authors: tags: - infrastructure repository: https://github.com/kubernetes-sigs/kubespray +dependencies: + ansible.utils: '>=2.5.0' build_ignore: - .github - '*.tar.gz' diff --git a/roles/network_plugin/calico/tasks/install.yml b/roles/network_plugin/calico/tasks/install.yml index d371440a3a2..1042916e76d 100644 --- a/roles/network_plugin/calico/tasks/install.yml +++ b/roles/network_plugin/calico/tasks/install.yml @@ -87,7 +87,7 @@ - name: Calico | Ensure that calico_pool_cidr is within kube_pods_subnet when defined assert: - that: "[calico_pool_cidr] | ipaddr(kube_pods_subnet) | length == 1" + that: "[calico_pool_cidr] | ansible.utils.ipaddr(kube_pods_subnet) | length == 1" msg: "{{ calico_pool_cidr }} is not within or equal to {{ kube_pods_subnet }}" when: - inventory_hostname == groups['kube_control_plane'][0]