Skip to content

Commit fb0908f

Browse files
authored
Merge branch 'stable' into update-251224
2 parents 3df336d + 04767cb commit fb0908f

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

src/mas/devops/ocp.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,12 @@ def listInstances(dynClient: DynamicClient, apiVersion: str, kind: str) -> list:
259259

260260

261261
def waitForPVC(dynClient: DynamicClient, namespace: str, pvcName: str) -> bool:
262+
"""
263+
We will allow up to 10 minutes for a PVC to report a successful binding
264+
"""
262265
pvcAPI = dynClient.resources.get(api_version="v1", kind="PersistentVolumeClaim")
263-
maxRetries = 60
266+
maxRetries = 20
267+
retryDelaySeconds = 30
264268
foundReadyPVC = False
265269
retries = 0
266270
while not foundReadyPVC and retries < maxRetries:
@@ -270,11 +274,11 @@ def waitForPVC(dynClient: DynamicClient, namespace: str, pvcName: str) -> bool:
270274
if pvc.status.phase == "Bound":
271275
foundReadyPVC = True
272276
else:
273-
logger.debug(f"Waiting 5s for PVC {pvcName} to be ready before checking again ...")
274-
sleep(5)
277+
logger.debug(f"Waiting {retryDelaySeconds}s for PVC {pvcName} to be bound before checking again ...")
278+
sleep(retryDelaySeconds)
275279
except NotFoundError:
276-
logger.debug(f"Waiting 5s for PVC {pvcName} to be created before checking again ...")
277-
sleep(5)
280+
logger.debug(f"Waiting {retryDelaySeconds}s for PVC {pvcName} to be created before checking again ...")
281+
sleep(retryDelaySeconds)
278282

279283
return foundReadyPVC
280284

src/mas/devops/templates/pipelinerun-install.yml.j2

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,10 @@ spec:
275275

276276
# Dependencies - SLS
277277
# -------------------------------------------------------------------------
278+
{%- if sls_channel is defined and sls_channel != "" %}
278279
- name: sls_channel
279-
value: '3.x'
280+
value: "{{ sls_channel }}"
281+
{%- endif %}
280282
{%- if sls_entitlement_file is defined and sls_entitlement_file != "" %}
281283
- name: sls_entitlement_file
282284
value: "{{ sls_entitlement_file }}"

0 commit comments

Comments
 (0)