Skip to content

Commit 907c629

Browse files
author
Sanjay Prabhakar
committed
[patch] return value for installOpenShiftPipelines
1 parent 2879ef4 commit 907c629

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/mas/devops/tekton.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,15 @@ def installOpenShiftPipelines(dynClient: DynamicClient, customStorageClassName:
9696
foundReadyPVC = waitForPVC(dynClient, namespace="openshift-pipelines", pvcName="postgredb-tekton-results-postgres-0")
9797
if foundReadyPVC:
9898
logger.info("OpenShift Pipelines postgres is installed and ready")
99+
return True
99100
else:
100101
patchedPVC = patchPendingPVC(dynClient, namespace="openshift-pipelines", pvcName="postgredb-tekton-results-postgres-0", storageClassName=customStorageClassName)
101102
if patchedPVC:
102103
logger.info("OpenShift Pipelines postgres is installed and ready")
104+
return True
103105
else:
104106
logger.error("OpenShift Pipelines postgres PVC is NOT ready")
107+
return False
105108

106109

107110
def updateTektonDefinitions(namespace: str, yamlFile: str) -> None:

0 commit comments

Comments
 (0)