Skip to content

Commit 5c3d436

Browse files
committed
Added Wait till CRD tridentbackendconfigs is available
1 parent 7ec6ee9 commit 5c3d436

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

roles/feature-netapp-trident/tasks/post-deploy.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,16 @@
126126
password: "{{ netapp_password | b64encode }}"
127127
username: "{{ netapp_username | b64encode }}"
128128

129-
## ToDo Add wait-for
130-
# kind: CustomResourceDefinition
131-
# apiVersion: apiextensions.k8s.io/v1
132-
# metadata:
133-
# name: tridentbackendconfigs.trident.netapp.io
129+
- name: Wait till CRD tridentbackendconfigs is available
130+
kubernetes.core.k8s_info:
131+
kubeconfig: "{{ cluster_access_kubeconfig }}"
132+
133+
api_version: apiextensions.k8s.io/v1
134+
kind: CustomResourceDefinition
135+
name: tridentbackendconfigs.trident.netapp.io
136+
wait: yes
137+
wait_sleep: 10
138+
wait_timeout: 360
134139

135140
- name: Create TridentBackendConfig/coe-netapp-san
136141
kubernetes.core.k8s:

0 commit comments

Comments
 (0)