Skip to content

Commit

Permalink
Add playbook for Octavia amphora image
Browse files Browse the repository at this point in the history
  • Loading branch information
gthiemonge committed Aug 1, 2024
1 parent d87ab21 commit eec755d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions hooks/playbooks/octavia-amphora-image-upload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
- name: Upload Octavia amphora image
hosts: "{{ cifmw_target_hook_host | default('localhost') }}"
gather_facts: false
tasks:
- name: Set amphoraImageContainerImage
environment:
KUBECONFIG: "{{ cifmw_openshift_kubeconfig }}"
PATH: "{{ cifmw_path }}"
ansible.builtin.shell: |
crname=$(oc get openstackcontrolplane -o name -n {{ namespace }})
# TODO: replace with D/S image
oc patch ${crname} -n {{ namespace }} --type=merge --patch \
'{"spec":{"octavia":{"template":{"amphoraImageContainerImage":"quay.io/gthiemonge/octavia-amphora-image"}}}}'
oc wait -n {{ namespace }} --timeout=180s --for=condition=OctaviaAmphoraImagesReady octavia.octavia.openstack.org/octavia

0 comments on commit eec755d

Please sign in to comment.