From 6443d43bd4fbc512a41be4ceb24a8be7c84d337f Mon Sep 17 00:00:00 2001 From: k8s-infra-cherrypick-robot <90416843+k8s-infra-cherrypick-robot@users.noreply.github.com> Date: Thu, 30 May 2024 05:26:06 -0700 Subject: [PATCH] Allow empty kube_node group (#11249) While uncommon, provisioning only a control plane is a valid use case, so don't block it. Co-authored-by: Max Gautier --- roles/kubernetes/preinstall/tasks/0040-verify-settings.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/roles/kubernetes/preinstall/tasks/0040-verify-settings.yml b/roles/kubernetes/preinstall/tasks/0040-verify-settings.yml index 55dda5b81..1bb0f4856 100644 --- a/roles/kubernetes/preinstall/tasks/0040-verify-settings.yml +++ b/roles/kubernetes/preinstall/tasks/0040-verify-settings.yml @@ -1,10 +1,7 @@ --- - name: Stop if either kube_control_plane or kube_node group is empty assert: - that: "groups.get( item )" - with_items: - - kube_control_plane - - kube_node + that: groups.get( 'kube_control_plane' ) run_once: true when: not ignore_assert_errors