Skip to content

Commit

Permalink
[stf-run-ci][create_catalog] Fetch files to ansible controller before…
Browse files Browse the repository at this point in the history
… trying to load vars
  • Loading branch information
elfiesmelfie committed Nov 7, 2024
1 parent d706ed2 commit 4f8ff58
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions build/stf-run-ci/tasks/create_catalog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,30 @@
args:
chdir: "{{ base_dir }}/working/service-telemetry-framework-index/"

- name: Set the csv_dest based on whether zuul is used or not
ansible.builtin.set_fact:
csv_dest: "{{ zuul.executor.work_dir if zuul is defined else base_dir + '/working/service-telemetry-framework-index/' }}"

- name: "Put the CSV files onto the ansible controller, so we can include_vars"
ansible.builtin.fetch:
src: "{{ base_dir }}/working/service-telemetry-framework-index/service-telemetry-operator.clusterserviceversion.yaml"
dest: "{{ csv_dest }}/"
flat: yes

- name: "Put the CSV files onto the ansible controller, so we can include_vars"
ansible.builtin.fetch:
src: "{{ base_dir }}/working/service-telemetry-framework-index/smart-gateway-operator.clusterserviceversion.yaml"
dest: "{{ csv_dest }}/"
flat: yes

- name: Read STO bundle CSV file contents
ansible.builtin.include_vars:
file: "{{ base_dir }}/working/service-telemetry-framework-index/service-telemetry-operator.clusterserviceversion.yaml"
file: "{{ csv_dest }}/service-telemetry-operator.clusterserviceversion.yaml"
name: sto_prebuilt_bundle_csv

- name: Read SGO bundle CSV file contents
ansible.builtin.include_vars:
file: "{{ base_dir }}/working/service-telemetry-framework-index/smart-gateway-operator.clusterserviceversion.yaml"
file: "{{ csv_dest }}/smart-gateway-operator.clusterserviceversion.yaml"
name: sgo_prebuilt_bundle_csv

- name: Get STO and SGO bundle package names (from CSV)
Expand Down

0 comments on commit 4f8ff58

Please sign in to comment.