Drop explicit k8s_cluster group in CI inventory (#11858)

This removes compatibility with releases below 2.27.0, now that it has
been released and that we're testing upgrades against it.
This commit is contained in:
Max Gautier
2025-01-23 11:34:58 +01:00
committed by GitHub
parent bfe858ba06
commit 191f71afea

View File

@@ -4,11 +4,8 @@
- name: Start vms for CI job
vars:
# Workaround for compatibility when testing upgrades with old == before e9d406ed088d4291ef1d9018c170a4deed2bf928
# TODO: drop after 2.27.0
legacy_groups: "{{ (['kube_control_plane', 'kube_node', 'calico_rr'] | intersect(item) | length > 0) | ternary(['k8s_cluster'], []) }}"
tvars:
kubespray_groups: "{{ item + legacy_groups }}"
kubespray_groups: "{{ item }}"
kubernetes.core.k8s:
definition: "{{ lookup('template', 'vm.yml.j2', template_vars=tvars) }}"
loop: "{{ scenarios[mode | d('default')] }}"