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
6 changes: 3 additions & 3 deletions src/mas/devops/tekton.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ def installOpenShiftPipelines(dynClient: DynamicClient, customStorageClassName:
pvcName = "postgredb-tekton-results-postgres-0"
pvcNamespace = "openshift-pipelines"

# Wait briefly for PVC to be created (max 30 seconds)
maxInitialRetries = 6
# Wait briefly for PVC to be created (max 5 minutes)
maxInitialRetries = 60
pvc = None
for retry in range(maxInitialRetries):
try:
Expand All @@ -124,7 +124,7 @@ def installOpenShiftPipelines(dynClient: DynamicClient, customStorageClassName:
sleep(5)

if pvc is None:
logger.error(f"PVC {pvcName} was not created after {maxInitialRetries * 5} seconds")
logger.error(f"PVC {pvcName} was not created after {maxInitialRetries * 5} seconds (5 minutes)")
return False

# Check if PVC is already bound
Expand Down