Skip to content

Commit

Permalink
Merge pull request #480 from redhatci/def_channel
Browse files Browse the repository at this point in the history
fbc catalog - Use default channel
  • Loading branch information
betoredhat authored Oct 29, 2024
2 parents 14b7a14 + b795b55 commit 5344bbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/fbc_catalog/tasks/add-bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@

- name: "Set default channel"
vars:
query_channel: "Labels.\"operators.operatorframework.io.bundle.channels.v1\""
query_channel: "Labels.\"operators.operatorframework.io.bundle.channel.default.v1\""
bundle_channel: "{{ bundle_inspect.stdout | from_json | json_query(query_channel) }}"
ansible.builtin.set_fact:
fbc_default_channel: "{{ bundle_channel | length | ternary(bundle_channel.split(',')[0], 'latest') }}"
fbc_default_channel: "{{ bundle_channel | default('latest', true) }}"

- name: "Initialize operators index"
ansible.builtin.shell: >
Expand Down

0 comments on commit 5344bbb

Please sign in to comment.