Browse Source

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 <mg@max.gautier.name>
pull/11252/head
k8s-infra-cherrypick-robot 6 months ago
committed by GitHub
parent
commit
6443d43bd4
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 4 deletions
  1. 5
      roles/kubernetes/preinstall/tasks/0040-verify-settings.yml

5
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

Loading…
Cancel
Save