From dcdd477301c8d3c9e82170c5acf46695ee3762c1 Mon Sep 17 00:00:00 2001 From: konflux Date: Sat, 10 May 2025 12:30:36 +0000 Subject: [PATCH] Konflux build pipeline service account migration for ray-cuda Signed-off-by: konflux --- .tekton/ray-cuda-push.yaml | 48 +++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/.tekton/ray-cuda-push.yaml b/.tekton/ray-cuda-push.yaml index 6914f7f8..d7f912f8 100644 --- a/.tekton/ray-cuda-push.yaml +++ b/.tekton/ray-cuda-push.yaml @@ -6,10 +6,9 @@ metadata: build.appstudio.redhat.com/commit_sha: '{{revision}}' build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "3" - pipelinesascode.tekton.dev/on-cel-expression: | - event == "push" - && target_branch == "main" - && ( "images/runtime/ray/cuda/**".pathChanged() || ".tekton/ray-cuda-push.yaml".pathChanged() ) + pipelinesascode.tekton.dev/on-cel-expression: "event == \"push\" \n&& target_branch + == \"main\" \n&& ( \"images/runtime/ray/cuda/**\".pathChanged() || \".tekton/ray-cuda-push.yaml\".pathChanged() + )\n" creationTimestamp: null labels: appstudio.openshift.io/application: runtime-ray @@ -31,22 +30,6 @@ spec: value: Dockerfile - name: path-context value: images/runtime/ray/cuda - taskRunSpecs: - - pipelineTaskName: build-container - stepSpecs: - - name: build - computeResources: - requests: - memory: 10Gi - limits: - memory: 10Gi - - pipelineTaskName: prefetch-dependencies - computeResources: - requests: - cpu: '1' - memory: 2Gi - limits: - memory: 2Gi pipelineSpec: description: | This pipeline is ideal for building container images from a Containerfile while maintaining trust after pipeline customization. @@ -68,9 +51,9 @@ spec: value: task resolver: bundles params: - - name: additional-tag + - description: Additional fixed tag for the image + name: additional-tag type: string - description: Additional fixed tag for the image - description: Source Repository URL name: git-url type: string @@ -429,7 +412,7 @@ spec: value: $(tasks.build-image-index.results.IMAGE_URL) - name: ADDITIONAL_TAGS value: - - "$(params.additional-tag)" + - $(params.additional-tag) runAfter: - build-image-index taskRef: @@ -469,7 +452,24 @@ spec: optional: true - name: netrc optional: true - taskRunTemplate: {} + taskRunSpecs: + - pipelineTaskName: build-container + stepSpecs: + - computeResources: + limits: + memory: 10Gi + requests: + memory: 10Gi + name: build + - computeResources: + limits: + memory: 2Gi + requests: + cpu: "1" + memory: 2Gi + pipelineTaskName: prefetch-dependencies + taskRunTemplate: + serviceAccountName: build-pipeline-ray-cuda workspaces: - name: git-auth secret: