Skip to content

Commit ea8a035

Browse files
authored
Include retry to check OCS CRD is available
1 parent bc04627 commit ea8a035

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

roles/odf_setup/tasks/validation.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22
- name: "Check if the OCS CRD is present"
33
block:
4-
- kubernetes.core.k8s_info:
4+
- name: "Check if the OCS CRD is present"
5+
kubernetes.core.k8s_info:
56
kind: CustomResourceDefinition
67
name: storageclusters.ocs.openshift.io
78
register: req_crd
@@ -14,7 +15,7 @@
1415
ansible.builtin.fail:
1516
msg: "OCS CRDs are not present, please install the Openshift Cluster Storage Operator"
1617
when: req_crd.resources | list | count == 0
17-
18+
1819
- name: "Check if the main LSO CRD is present"
1920
kubernetes.core.k8s_info:
2021
kind: CustomResourceDefinition

0 commit comments

Comments
 (0)