File tree Expand file tree Collapse file tree 4 files changed +9
-43
lines changed Expand file tree Collapse file tree 4 files changed +9
-43
lines changed Original file line number Diff line number Diff line change 42
42
ansible.builtin.copy :
43
43
mode : " 0644"
44
44
content : |
45
- cifmw_edpm_prepare_update_os_containers: true
46
- cifmw_set_openstack_containers_operator_name: openstack-ansibleee
47
- cifmw_set_openstack_containers_overrides:
48
- RELATED_IMAGE_ANSIBLEEE_IMAGE_URL_DEFAULT: "{{ ansibleee_runner_img }}"
45
+ cifmw_update_containers_ansibleee_image_url: "{{ ansibleee_runner_img }}"
46
+ cifmw_update_containers: true
49
47
dest : " {{ ansible_user_dir }}/ci-framework-data/artifacts/edpm-ansible.yml"
Original file line number Diff line number Diff line change 132
132
cacheable : true
133
133
when : cifmw_build_images_output is defined
134
134
135
- - name : Patch baremetal CSV to override the uefi image
136
- when : cifmw_update_containers_edpm_image_url is defined
135
+ - name : Update BM CSV or Ansibleee CSV to update proper image
136
+ when : >-
137
+ (cifmw_update_containers_edpm_image_url is defined) or
138
+ (cifmw_update_containers_ansibleee_image_url is defined)
137
139
ansible.builtin.include_role :
138
140
name : update_containers
139
141
140
- - name : Patch ansible runner image temporarily
141
- when :
142
- - not cifmw_edpm_prepare_update_os_containers | bool
143
- - not cifmw_edpm_prepare_skip_patch_ansible_runner | bool
144
- environment :
145
- KUBECONFIG : " {{ cifmw_openshift_kubeconfig }}"
146
- PATH : " {{ cifmw_path }}"
147
- block :
148
- - name : Get ansibleee-operator csv name
149
- ansible.builtin.shell : |
150
- set -o pipefail && \
151
- oc get csv -n openstack-operators -o name | grep ansibleee-operator
152
- register : _ansibleee_csv_name
153
-
154
- - name : Patch ansible runner image
155
- ansible.builtin.command :
156
- cmd : >-
157
- oc patch -n openstack-operators "{{ _ansibleee_csv_name.stdout }}"
158
- --type='json' -p='[{
159
- "op":"replace", "path":"/spec/install/spec/deployments/0/spec/template/spec/containers/1/env/0",
160
- "value": {"name": "RELATED_IMAGE_ANSIBLEEE_IMAGE_URL_DEFAULT", "value": "quay.io/openstack-k8s-operators/openstack-ansibleee-runner:latest"}}]'
161
-
162
142
# Prepare and kustomize the OpenStackControlPlane CR
163
143
- name : Prepare OpenStack control plane CR
164
144
vars :
Original file line number Diff line number Diff line change 32
32
PATH : " {{ cifmw_path }}"
33
33
ansible.builtin.command :
34
34
cmd : " oc apply -f {{ cifmw_update_containers_dest_path }}"
35
-
36
- # Note(chkumar): It will be removed once ansiblee runner
37
- # support is enabled in openstackversion interface.
38
- - name : Update Ansibleee Runner container
39
- when : cifmw_update_containers_ansibleee_image_url is defined
40
- environment :
41
- KUBECONFIG : " {{ cifmw_openshift_kubeconfig }}"
42
- PATH : " {{ cifmw_path }}"
43
- ansible.builtin.command :
44
- cmd : >-
45
- oc patch csv -n openstack-operators openstack-ansibleee-operator.v0.0.1
46
- --type='json' -p='[{
47
- "op":"replace", "path":"/spec/install/spec/deployments/0/spec/template/spec/containers/1/env/0",
48
- "value": {"name": "RELATED_IMAGE_ANSIBLEEE_IMAGE_URL_DEFAULT",
49
- "value": {{ cifmw_update_containers_ansibleee_image_url }}}}]'
Original file line number Diff line number Diff line change 85
85
{% if cifmw_update_containers_edpm_image_url is defined %}
86
86
osContainerImage: {{ cifmw_update_containers_edpm_image_url }}
87
87
{% endif %}
88
+ {% if cifmw_update_containers_ansibleee_image_url is defined %}
89
+ ansibleeeImage: {{ cifmw_update_containers_ansibleee_image_url }}
90
+ {% endif %}
You can’t perform that action at this time.
0 commit comments