Skip to content

Commit

Permalink
CI: workaround for upgrade test backward compatibility
Browse files Browse the repository at this point in the history
The new CI does not define k8s_cluster group, so it relies on
kubernetes-sigs#11559.

This does not work for upgrade testing (which use the previous release).
We can revert this commit after 2.27.0
  • Loading branch information
VannTen committed Oct 18, 2024
1 parent b3b9d0f commit c2b3ec0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/cloud_playbooks/roles/packet-ci/tasks/create-vms.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
---
- 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 }}"
kubespray_groups: "{{ item + legacy_groups }}"
kubernetes.core.k8s:
definition: "{{ lookup('template', 'vm.yml.j2', template_vars=tvars) }}"
loop: "{{ scenarios[mode | d('default')] }}"
Expand Down

0 comments on commit c2b3ec0

Please sign in to comment.