From 7b6cb7645ba9d5a4e71bd9716598e94696ad37f9 Mon Sep 17 00:00:00 2001
From: "red-hat-konflux[bot]"
 <126015336+red-hat-konflux[bot]@users.noreply.github.com>
Date: Mon, 12 May 2025 18:08:48 +0200
Subject: [PATCH] Konflux build pipeline service account migration for
 netobserv-ebpf-agent-ystream (#694)

Signed-off-by: konflux <konflux@no-reply.konflux-ci.dev>

Co-authored-by: konflux <konflux@no-reply.konflux-ci.dev>
---
 .tekton/netobserv-ebpf-agent-ystream-pull-request.yaml | 6 +++++-
 .tekton/netobserv-ebpf-agent-ystream-push.yaml         | 5 ++++-
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/.tekton/netobserv-ebpf-agent-ystream-pull-request.yaml b/.tekton/netobserv-ebpf-agent-ystream-pull-request.yaml
index dc445452..956004de 100644
--- a/.tekton/netobserv-ebpf-agent-ystream-pull-request.yaml
+++ b/.tekton/netobserv-ebpf-agent-ystream-pull-request.yaml
@@ -31,6 +31,10 @@ spec:
   - name: dockerfile
     value: Dockerfile.downstream
   - name: build-platforms
-    value: ["linux/x86_64"]
+    value:
+    - linux/x86_64
   pipelineRef:
     name: build-pipeline
+  taskRunTemplate:
+    serviceAccountName: build-pipeline-netobserv-ebpf-agent-ystream
+status: {}
diff --git a/.tekton/netobserv-ebpf-agent-ystream-push.yaml b/.tekton/netobserv-ebpf-agent-ystream-push.yaml
index 34ceae0a..0e9105cb 100644
--- a/.tekton/netobserv-ebpf-agent-ystream-push.yaml
+++ b/.tekton/netobserv-ebpf-agent-ystream-push.yaml
@@ -2,11 +2,11 @@ apiVersion: tekton.dev/v1
 kind: PipelineRun
 metadata:
   annotations:
+    build.appstudio.openshift.io/build-nudge-files: hack/nudging/container_digest.sh
     build.appstudio.openshift.io/repo: https://github.com/netobserv/netobserv-ebpf-agent?rev={{revision}}
     build.appstudio.redhat.com/commit_sha: '{{revision}}'
     build.appstudio.redhat.com/target_branch: '{{target_branch}}'
     pipelinesascode.tekton.dev/max-keep-runs: "3"
-    build.appstudio.openshift.io/build-nudge-files: "hack/nudging/container_digest.sh"
     pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch
       == "main"
   creationTimestamp: null
@@ -30,3 +30,6 @@ spec:
     value: Dockerfile.downstream
   pipelineRef:
     name: build-pipeline
+  taskRunTemplate:
+    serviceAccountName: build-pipeline-netobserv-ebpf-agent-ystream
+status: {}
-- 
GitLab