diff --git a/src/mas/devops/ocp.py b/src/mas/devops/ocp.py index b5c40bc0..24d9a2dd 100644 --- a/src/mas/devops/ocp.py +++ b/src/mas/devops/ocp.py @@ -269,6 +269,16 @@ def waitForPVC(dynClient: DynamicClient, namespace: str, pvcName: str) -> bool: retries = 0 while not foundReadyPVC and retries < maxRetries: retries += 1 + # After 5 retries increase the delay to 1 minute + # After 10 retries increase the delay to 2 minutes + # After 15 retries increase the delay to 5 minutes + if retries == 6: + retryDelaySeconds = 60 + elif retries == 11: + retryDelaySeconds = 120 + elif retries == 16: + retryDelaySeconds = 300 + try: pvc = pvcAPI.get(name=pvcName, namespace=namespace) if pvc.status.phase == "Bound":