Skip to content

Commit 255daf2

Browse files
committed
Set a default for STO/SGO path when local build
The STO/SGO image path needs a default when doing a local build. When deploying from index + prebuilt bundles we set this path when the bundles get imported. Add a conditional to avoid overwriting facts.
1 parent 183c471 commit 255daf2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build/stf-run-ci/tasks/main.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,14 @@
1515
sg_bridge_image_path: "{{ __internal_registry_path }}/{{ namespace }}/sg-bridge:{{ sg_bridge_image_tag }}"
1616
prometheus_webhook_snmp_image_path: "{{ __internal_registry_path }}/{{ namespace }}/prometheus-webhook-snmp:{{ prometheus_webhook_snmp_image_tag }}"
1717

18-
- name: Set default image paths for bundle and index builds
18+
- name: Set default image paths for bundle builds
19+
when: __local_build_enabled | bool
1920
ansible.builtin.set_fact:
2021
sgo_bundle_image_path: "{{ __internal_registry_path }}/{{ namespace }}/smart-gateway-operator-bundle:{{ sgo_bundle_image_tag }}"
2122
sto_bundle_image_path: "{{ __internal_registry_path }}/{{ namespace }}/service-telemetry-operator-bundle:{{ sto_bundle_image_tag }}"
23+
24+
- name: Set default image paths for index builds
25+
ansible.builtin.set_fact:
2226
stf_index_image_path: "{{ __internal_registry_path }}/{{ namespace }}/service-telemetry-framework-index:{{ stf_index_image_tag }}"
2327

2428
- name: Fail on mutually exclusive flags

0 commit comments

Comments
 (0)