Skip to content

Commit

Permalink
Create objects without waiting for molecule setup (#5679)
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Macdonald <[email protected]>
  • Loading branch information
asmacdo authored Apr 27, 2022
1 parent 04fb844 commit e37d018
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ const kustomizeTemplate = `---
changed_when: false
- name: Set resources to {{ "{{ state }}" }}
k8s:
definition: '{{ "{{ item }}" }}'
state: '{{ "{{ state }}" }}'
wait: no
loop: '{{ "{{ resources.stdout | from_yaml_all | list }}" }}'
- name: Wait for resources to get to {{ "{{ state }}" }}
k8s:
definition: '{{ "{{ item }}" }}'
state: '{{ "{{ state }}" }}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
changed_when: false

- name: Set resources to {{ state }}
k8s:
definition: '{{ item }}'
state: '{{ state }}'
wait: no
loop: '{{ resources.stdout | from_yaml_all | list }}'

- name: Wait for resources to get to {{ state }}
k8s:
definition: '{{ item }}'
state: '{{ state }}'
Expand Down

0 comments on commit e37d018

Please sign in to comment.