Copy awx image into kind cluster in molecule tests

This only happens when overriding the AWX image used in tests.
This commit is contained in:
Shane McDonald
2021-10-11 18:14:33 -04:00
parent 21fe2646b4
commit 9eb0e35861

View File

@@ -16,9 +16,17 @@
source: build
force_source: yes
- name: Load image into kind cluster
- name: Load operator image into kind cluster
command: kind load docker-image --name osdk-test '{{ operator_image }}'
register: result
changed_when: '"not yet present" in result.stdout'
- name: Load awx image into kind cluster
command: kind load docker-image --name osdk-test '{{ awx_image }}:{{ awx_version }}'
register: result
changed_when: '"not yet present" in result.stdout'
when:
- awx_image is defined
- awx_image != ''
- import_playbook: ../default/converge.yml