From 65c81555ae6cc2468a9a018fea90fd0e0a2b24d8 Mon Sep 17 00:00:00 2001 From: akashbogam Date: Wed, 7 Jan 2026 12:42:43 +0530 Subject: [PATCH] [patch] fix pgdb pvc timeout issue --- src/mas/devops/tekton.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mas/devops/tekton.py b/src/mas/devops/tekton.py index 14216481..02ebe572 100644 --- a/src/mas/devops/tekton.py +++ b/src/mas/devops/tekton.py @@ -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: @@ -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