Skip to content

Commit

Permalink
Merge branch 'main' into test-manual-install
Browse files Browse the repository at this point in the history
  • Loading branch information
sathlan authored Jan 21, 2025
2 parents 3e79a4c + affcd2a commit 803eed1
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions roles/test_operator/tasks/tempest-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,28 @@
test_operator_cr |
combine({'spec': {'workflow': overriden_workflow}}, recursive=true)
}}
- name: Make sure resources are not set for worklfow step
when:
- not cifmw_test_operator_dry_run | bool
- stage_vars_dict.cifmw_test_operator_tempest_workflow | list | length > 0
block:
- name: Remove resources until fix for bug 2088074 reaches openstack-tempest-all image
when: item.resources is undefined
vars:
_no_resources_workflow_step: >-
{{
item |
combine({"resources": {"requests": {}, "limits": {}}}, recursive=true)
}}
ansible.builtin.set_fact:
no_resources_workflow: "{{ no_resources_workflow | default([]) + [_no_resources_workflow_step] }}"
loop: "{{ stage_vars_dict.cifmw_test_operator_tempest_workflow | list }}"

- name: Override the Tempest CR workflow
ansible.builtin.set_fact:
test_operator_cr: >-
{{
test_operator_cr |
combine({'spec': {'workflow': no_resources_workflow}}, recursive=true)
}}

0 comments on commit 803eed1

Please sign in to comment.