Skip to content

Commit 0179e66

Browse files
Merge pull request #874 from openshift-cherrypick-robot/cherry-pick-865-to-18.0-fr5
[18.0-fr5] Wait for route CRD before deploying loki-operator
2 parents 1818655 + 92b5522 commit 0179e66

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

ci/cloudkitty-pre_deploy-install_loki.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@
1414
github.com/openstack-k8s-operators/telemetry-operator:
1515
src_dir: "{{ telemetry_operator_dir | default('telemetry-operator/') }}"
1616

17+
- name: Wait for the route kind to be present in the cluster
18+
ansible.builtin.command:
19+
cmd:
20+
oc api-resources --api-group=route.openshift.io --no-headers
21+
delay: 10
22+
retries: 30
23+
register: route_api_check
24+
until: route_api_check.stdout_lines | length != 0
25+
1726
- name: Deploy loki operator
1827
ansible.builtin.shell:
1928
cmd: |

0 commit comments

Comments
 (0)