Skip to content

Commit 21a8cd5

Browse files
committed
Add wait to prevent race condition
Some jobs show an error that could be appearing thanks to a race condition. This patch aims to prevent this case by first waiting for a pod to start before running the next task.
1 parent 370fa8a commit 21a8cd5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

roles/test_operator/tasks/run-test-operator-job.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@
111111
api_key: "{{ cifmw_openshift_token | default(omit)}}"
112112
context: "{{ cifmw_openshift_context | default(omit)}}"
113113
state: present
114+
wait: true
114115
definition:
115116
apiVersion: v1
116117
kind: Pod

0 commit comments

Comments
 (0)