Skip to content

Commit 62f0da0

Browse files
committed
RHOAIENG-18400: chore(.tekton/): add ephemeral-storage?
1 parent ab924cc commit 62f0da0

File tree

37 files changed

+44
-0
lines changed

37 files changed

+44
-0
lines changed

.tekton/codeserver-ubi9-python-3-11-pull-request.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,7 @@ spec:
611611
memory: 8Gi
612612
requests:
613613
cpu: '2'
614+
ephemeral-storage: 120Gi
614615
memory: 4Gi
615616
pipelineTaskName: build-images
616617
- computeResources:

.tekton/codeserver-ubi9-python-3-11-push.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@ spec:
604604
memory: 8Gi
605605
requests:
606606
cpu: '2'
607+
ephemeral-storage: 120Gi
607608
memory: 4Gi
608609
pipelineTaskName: build-images
609610
- computeResources:

.tekton/cuda-jupyter-minimal-ubi9-python-3-11-pull-request.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,7 @@ spec:
610610
memory: 8Gi
611611
requests:
612612
cpu: '2'
613+
ephemeral-storage: 120Gi
613614
memory: 4Gi
614615
pipelineTaskName: build-images
615616
- computeResources:

.tekton/cuda-jupyter-minimal-ubi9-python-3-11-push.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@ spec:
604604
memory: 8Gi
605605
requests:
606606
cpu: '2'
607+
ephemeral-storage: 120Gi
607608
memory: 4Gi
608609
pipelineTaskName: build-images
609610
- computeResources:

.tekton/cuda-jupyter-pytorch-ubi9-python-3-11-pull-request.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,7 @@ spec:
613613
memory: 8Gi
614614
requests:
615615
cpu: '2'
616+
ephemeral-storage: 120Gi
616617
memory: 4Gi
617618
pipelineTaskName: build-images
618619
- computeResources:

.tekton/cuda-jupyter-pytorch-ubi9-python-3-11-push.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@ spec:
604604
memory: 8Gi
605605
requests:
606606
cpu: '2'
607+
ephemeral-storage: 120Gi
607608
memory: 4Gi
608609
pipelineTaskName: build-images
609610
- computeResources:

.tekton/cuda-jupyter-tensorflow-ubi9-python-3-11-pull-request.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,7 @@ spec:
613613
memory: 8Gi
614614
requests:
615615
cpu: '2'
616+
ephemeral-storage: 120Gi
616617
memory: 4Gi
617618
pipelineTaskName: build-images
618619
- computeResources:

.tekton/cuda-jupyter-tensorflow-ubi9-python-3-11-push.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@ spec:
604604
memory: 8Gi
605605
requests:
606606
cpu: '2'
607+
ephemeral-storage: 120Gi
607608
memory: 4Gi
608609
pipelineTaskName: build-images
609610
- computeResources:

.tekton/cuda-rstudio-c9s-python-3-11-pull-request.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,7 @@ spec:
614614
memory: 8Gi
615615
requests:
616616
cpu: '2'
617+
ephemeral-storage: 120Gi
617618
memory: 4Gi
618619
pipelineTaskName: build-images
619620
- computeResources:

.tekton/cuda-rstudio-c9s-python-3-11-push.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@ spec:
604604
memory: 8Gi
605605
requests:
606606
cpu: '2'
607+
ephemeral-storage: 120Gi
607608
memory: 4Gi
608609
pipelineTaskName: build-images
609610
- computeResources:

.tekton/jupyter-datascience-ubi9-python-3-11-pull-request.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,7 @@ spec:
612612
memory: 8Gi
613613
requests:
614614
cpu: '2'
615+
ephemeral-storage: 120Gi
615616
memory: 4Gi
616617
pipelineTaskName: build-images
617618
- computeResources:

.tekton/jupyter-datascience-ubi9-python-3-11-push.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@ spec:
604604
memory: 8Gi
605605
requests:
606606
cpu: '2'
607+
ephemeral-storage: 120Gi
607608
memory: 4Gi
608609
pipelineTaskName: build-images
609610
- computeResources:

.tekton/jupyter-minimal-ubi9-python-3-11-pull-request.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,7 @@ spec:
609609
memory: 8Gi
610610
requests:
611611
cpu: '2'
612+
ephemeral-storage: 120Gi
612613
memory: 4Gi
613614
pipelineTaskName: build-images
614615
- computeResources:

.tekton/jupyter-minimal-ubi9-python-3-11-push.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@ spec:
604604
memory: 8Gi
605605
requests:
606606
cpu: '2'
607+
ephemeral-storage: 120Gi
607608
memory: 4Gi
608609
pipelineTaskName: build-images
609610
- computeResources:

.tekton/jupyter-trustyai-ubi9-python-3-11-pull-request.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,7 @@ spec:
612612
memory: 8Gi
613613
requests:
614614
cpu: '2'
615+
ephemeral-storage: 120Gi
615616
memory: 4Gi
616617
pipelineTaskName: build-images
617618
- computeResources:

.tekton/jupyter-trustyai-ubi9-python-3-11-push.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@ spec:
604604
memory: 8Gi
605605
requests:
606606
cpu: '2'
607+
ephemeral-storage: 120Gi
607608
memory: 4Gi
608609
pipelineTaskName: build-images
609610
- computeResources:

.tekton/rocm-jupyter-minimal-ubi9-python-3-11-pull-request.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,7 @@ spec:
609609
memory: 8Gi
610610
requests:
611611
cpu: '2'
612+
ephemeral-storage: 120Gi
612613
memory: 4Gi
613614
pipelineTaskName: build-images
614615
- computeResources:

.tekton/rocm-jupyter-minimal-ubi9-python-3-11-push.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@ spec:
604604
memory: 8Gi
605605
requests:
606606
cpu: '2'
607+
ephemeral-storage: 120Gi
607608
memory: 4Gi
608609
pipelineTaskName: build-images
609610
- computeResources:

.tekton/rocm-jupyter-pytorch-ubi9-python-3-11-pull-request.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,7 @@ spec:
613613
memory: 8Gi
614614
requests:
615615
cpu: '2'
616+
ephemeral-storage: 120Gi
616617
memory: 4Gi
617618
pipelineTaskName: build-images
618619
- computeResources:

.tekton/rocm-jupyter-pytorch-ubi9-python-3-11-push.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@ spec:
604604
memory: 8Gi
605605
requests:
606606
cpu: '2'
607+
ephemeral-storage: 120Gi
607608
memory: 4Gi
608609
pipelineTaskName: build-images
609610
- computeResources:

.tekton/rocm-jupyter-tensorflow-ubi9-python-3-11-pull-request.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,7 @@ spec:
612612
memory: 8Gi
613613
requests:
614614
cpu: '2'
615+
ephemeral-storage: 120Gi
615616
memory: 4Gi
616617
pipelineTaskName: build-images
617618
- computeResources:

.tekton/rocm-jupyter-tensorflow-ubi9-python-3-11-push.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@ spec:
604604
memory: 8Gi
605605
requests:
606606
cpu: '2'
607+
ephemeral-storage: 120Gi
607608
memory: 4Gi
608609
pipelineTaskName: build-images
609610
- computeResources:

.tekton/rocm-runtime-pytorch-ubi9-python-3-11-pull-request.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,7 @@ spec:
609609
memory: 8Gi
610610
requests:
611611
cpu: '2'
612+
ephemeral-storage: 120Gi
612613
memory: 4Gi
613614
pipelineTaskName: build-images
614615
- computeResources:

.tekton/rocm-runtime-pytorch-ubi9-python-3-11-push.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@ spec:
604604
memory: 8Gi
605605
requests:
606606
cpu: '2'
607+
ephemeral-storage: 120Gi
607608
memory: 4Gi
608609
pipelineTaskName: build-images
609610
- computeResources:

.tekton/rocm-runtime-tensorflow-ubi9-python-3-11-pull-request.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,7 @@ spec:
608608
memory: 8Gi
609609
requests:
610610
cpu: '2'
611+
ephemeral-storage: 120Gi
611612
memory: 4Gi
612613
pipelineTaskName: build-images
613614
- computeResources:

.tekton/rocm-runtime-tensorflow-ubi9-python-3-11-push.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@ spec:
604604
memory: 8Gi
605605
requests:
606606
cpu: '2'
607+
ephemeral-storage: 120Gi
607608
memory: 4Gi
608609
pipelineTaskName: build-images
609610
- computeResources:

.tekton/rstudio-c9s-python-3-11-pull-request.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,7 @@ spec:
612612
memory: 8Gi
613613
requests:
614614
cpu: '2'
615+
ephemeral-storage: 120Gi
615616
memory: 4Gi
616617
pipelineTaskName: build-images
617618
- computeResources:

.tekton/rstudio-c9s-python-3-11-push.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@ spec:
604604
memory: 8Gi
605605
requests:
606606
cpu: '2'
607+
ephemeral-storage: 120Gi
607608
memory: 4Gi
608609
pipelineTaskName: build-images
609610
- computeResources:

.tekton/runtime-cuda-pytorch-ubi9-python-3-11-pull-request.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,7 @@ spec:
609609
memory: 8Gi
610610
requests:
611611
cpu: '2'
612+
ephemeral-storage: 120Gi
612613
memory: 4Gi
613614
pipelineTaskName: build-images
614615
- computeResources:

.tekton/runtime-cuda-pytorch-ubi9-python-3-11-push.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@ spec:
604604
memory: 8Gi
605605
requests:
606606
cpu: '2'
607+
ephemeral-storage: 120Gi
607608
memory: 4Gi
608609
pipelineTaskName: build-images
609610
- computeResources:

.tekton/runtime-cuda-tensorflow-ubi9-python-3-11-pull-request.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,7 @@ spec:
609609
memory: 8Gi
610610
requests:
611611
cpu: '2'
612+
ephemeral-storage: 120Gi
612613
memory: 4Gi
613614
pipelineTaskName: build-images
614615
- computeResources:

.tekton/runtime-cuda-tensorflow-ubi9-python-3-11-push.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@ spec:
604604
memory: 8Gi
605605
requests:
606606
cpu: '2'
607+
ephemeral-storage: 120Gi
607608
memory: 4Gi
608609
pipelineTaskName: build-images
609610
- computeResources:

.tekton/runtime-datascience-ubi9-python-3-11-pull-request.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,7 @@ spec:
608608
memory: 8Gi
609609
requests:
610610
cpu: '2'
611+
ephemeral-storage: 120Gi
611612
memory: 4Gi
612613
pipelineTaskName: build-images
613614
- computeResources:

.tekton/runtime-datascience-ubi9-python-3-11-push.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@ spec:
604604
memory: 8Gi
605605
requests:
606606
cpu: '2'
607+
ephemeral-storage: 120Gi
607608
memory: 4Gi
608609
pipelineTaskName: build-images
609610
- computeResources:

.tekton/runtime-minimal-ubi9-python-3-11-pull-request.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,7 @@ spec:
608608
memory: 8Gi
609609
requests:
610610
cpu: '2'
611+
ephemeral-storage: 120Gi
611612
memory: 4Gi
612613
pipelineTaskName: build-images
613614
- computeResources:

.tekton/runtime-minimal-ubi9-python-3-11-push.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@ spec:
604604
memory: 8Gi
605605
requests:
606606
cpu: '2'
607+
ephemeral-storage: 120Gi
607608
memory: 4Gi
608609
pipelineTaskName: build-images
609610
- computeResources:

ci/cached-builds/konflux_generate_component_build_pipelines.py

+8
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,7 @@ def component_build_pipeline(component_name, dockerfile_path, is_pr: bool = True
736736
"pipelineTaskName": task_name,
737737
"computeResources": {
738738
"requests": {
739+
**when(task_name == "build-images", if_true={"ephemeral-storage": "120Gi"}, if_false={}),
739740
"memory": "4Gi",
740741
"cpu": "2",
741742
},
@@ -753,6 +754,13 @@ def component_build_pipeline(component_name, dockerfile_path, is_pr: bool = True
753754
"status": {},
754755
}
755756

757+
def when[T: any](condition: bool, if_true: T, if_false: T) -> T:
758+
"""Returns either if_true or if_false depending on condition.
759+
760+
The advantage over using `if_true if condition else if_false` directly is that
761+
the parentheses in the expression are less distracting."""
762+
return if_true if condition else if_false
763+
756764

757765
# https://stackoverflow.com/questions/20805418/pyyaml-dump-format
758766
def represent_str(self, data):

0 commit comments

Comments
 (0)