You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
523 B
9 lines
523 B
---
|
|
|
|
- name: Wait for all pending deployments to become ready
|
|
command: 'oc get rc -o json -n "{{ threescale_options.project }}"'
|
|
register: rc_state
|
|
changed_when: false
|
|
retries: "{{ threescale_options.retries }}"
|
|
delay: "{{ threescale_options.delay }}"
|
|
until: 'rc_state.stdout |from_json |json_query(''items[? status.replicas != `0` && (status.readyReplicas == ""|| status.readyReplicas == `0`) ].metadata.annotations."openshift.io/deployment-config.name"'') |intersect(pod_to_wait) |length == 0'
|
|
|