File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -303,6 +303,7 @@ def wait_for_dv_success(
303
303
self ,
304
304
timeout = TIMEOUT_10MINUTES ,
305
305
failure_timeout = TIMEOUT_2MINUTES ,
306
+ pvc_wait_for_bound_timeout = TIMEOUT_1MINUTE ,
306
307
dv_garbage_collection_enabled = None ,
307
308
stop_status_func = None ,
308
309
* stop_status_func_args ,
@@ -314,6 +315,7 @@ def wait_for_dv_success(
314
315
Args:
315
316
timeout (int): Time to wait for the DataVolume to succeed.
316
317
failure_timeout (int): Time to wait for the DataVolume to have not Pending/None status
318
+ pvc_wait_for_bound_timeout (int): Time to wait for the PVC to reach 'Bound' status.
317
319
dv_garbage_collection_enabled (bool, default: None): DV garbage collection is deprecated and removed in
318
320
v4.19
319
321
stop_status_func (function): function that is called inside the TimeoutSampler
@@ -361,7 +363,7 @@ def test_dv():
361
363
raise
362
364
363
365
# For CSI storage, PVC gets Bound after DV succeeded
364
- return self .pvc .wait_for_status (status = PersistentVolumeClaim .Status .BOUND , timeout = TIMEOUT_1MINUTE )
366
+ return self .pvc .wait_for_status (status = PersistentVolumeClaim .Status .BOUND , timeout = pvc_wait_for_bound_timeout )
365
367
366
368
def delete (self , wait = False , timeout = TIMEOUT_4MINUTES , body = None ):
367
369
"""
You can’t perform that action at this time.
0 commit comments