Skip to content

Commit 7cc05b8

Browse files
Merge pull request #657 from vyzigold/check_for_route
[CI] Add check for route kind
2 parents 9b0e4ae + 4ce9b22 commit 7cc05b8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

ci/deploy-logging-dependencies/tasks/deploy-minio.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
# The minio sometimes fails to deploy, because of:
2+
# no matches for kind "Route" in version "route.openshift.io/v1" ensure CRDs are installed first
3+
#
4+
# Let's try to check if the route is available in the cluster bofere deploying minio
5+
- name: Wait for the route kind to be present in the cluster
6+
ansible.builtin.command:
7+
cmd:
8+
oc api-resources --api-group=route.openshift.io --no-headers
9+
delay: 10
10+
retries: 50
11+
register: output
12+
until: output.stdout_lines | length != 0
13+
114
- name: Create minio deployment
215
ansible.builtin.shell:
316
cmd: |

0 commit comments

Comments
 (0)