Skip to content

Commit

Permalink
Merge branch 'main' into b/beta-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
klgill authored May 10, 2024
2 parents 98bef2b + 9850794 commit 8b9e87b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/roles/dataplane_adoption/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,22 @@
oc get -n openstack-operators pod -l app.kubernetes.io/name=openstack-ansibleee-operator -o name
register: old_ansibleee_operator_pod

- name: Get ansibleee-operator csv name
no_log: "{{ use_no_log }}"
ansible.builtin.shell: |
{{ shell_header }}
{{ oc_header }}
oc get csv -n openstack-operators -o name | grep ansibleee-operator
register: _ansibleee_csv_name

- name: use ansible-runner image built from source or latest if none is defined

Check warning on line 25 in tests/roles/dataplane_adoption/tasks/main.yaml

View workflow job for this annotation

GitHub Actions / Ansible Lint

jinja[spacing]

Jinja2 spacing could be improved: {{ shell_header }}
no_log: "{{ use_no_log }}"
ansible.builtin.shell: |
{{ shell_header }}
{{ oc_header }}
{{ oc_login_command }}
# openstack-operator catalog pins the sha256, which might differ from latest with time
oc patch csv -n openstack-operators openstack-ansibleee-operator.v0.0.1 \
oc patch -n openstack-operators "{{ _ansibleee_csv_name.stdout }}" \
--type='json' -p='[{
"op":"replace", "path":"/spec/install/spec/deployments/0/spec/template/spec/containers/1/env/0",
"value": {"name": "RELATED_IMAGE_ANSIBLEEE_IMAGE_URL_DEFAULT", "value": "{{ ansibleee_runner_img | default('quay.io/openstack-k8s-operators/openstack-ansibleee-runner:latest')}}"}}]'
Expand Down

0 comments on commit 8b9e87b

Please sign in to comment.