Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/mas/devops/ocp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down
Loading