Skip to content

Commit 73f1a24

Browse files
author
konflux
committed
Konflux build pipeline service account migration for openshift-gitops-operator-bundle
Signed-off-by: konflux <konflux@no-reply.konflux-ci.dev>
1 parent 63d30a1 commit 73f1a24

File tree

2 files changed

+17
-25
lines changed

2 files changed

+17
-25
lines changed

.tekton/openshift-gitops-operator-bundle-pull-request.yaml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,9 @@ metadata:
77
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
88
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
99
pipelinesascode.tekton.dev/max-keep-runs: "3"
10-
pipelinesascode.tekton.dev/on-cel-expression: |
11-
event == "pull_request" &&
12-
target_branch == "master" &&
13-
(
14-
files.all.exists(x, x.matches('bundle/')) ||
15-
files.all.exists(x, x.matches('bundle.Dockerfile')) ||
16-
files.all.exists(x, x.matches('.tekton/openshift-gitops-operator-bundle-pull-request.yaml'))
17-
)
10+
pipelinesascode.tekton.dev/on-cel-expression: "event == \"pull_request\" && \ntarget_branch
11+
== \"master\" &&\n(\n files.all.exists(x, x.matches('bundle/')) ||\n files.all.exists(x,
12+
x.matches('bundle.Dockerfile')) ||\n files.all.exists(x, x.matches('.tekton/openshift-gitops-operator-bundle-pull-request.yaml'))\n)\n"
1813
creationTimestamp: null
1914
labels:
2015
appstudio.openshift.io/application: openshift-gitops-operator
@@ -35,10 +30,10 @@ spec:
3530
- name: dockerfile
3631
value: bundle.Dockerfile
3732
- name: hermetic
38-
value: true
33+
value: "true"
3934
- name: build-platforms
4035
value:
41-
- linux/x86_64
36+
- linux/x86_64
4237
pipelineSpec:
4338
description: |
4439
This pipeline is ideal for building multi-arch container images from a Containerfile while maintaining trust after pipeline customization.
@@ -469,7 +464,8 @@ spec:
469464
optional: true
470465
- name: netrc
471466
optional: true
472-
taskRunTemplate: {}
467+
taskRunTemplate:
468+
serviceAccountName: build-pipeline-openshift-gitops-operator-bundle
473469
workspaces:
474470
- name: git-auth
475471
secret:

.tekton/openshift-gitops-operator-bundle-push.yaml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,9 @@ metadata:
66
build.appstudio.redhat.com/commit_sha: '{{revision}}'
77
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
88
pipelinesascode.tekton.dev/max-keep-runs: "3"
9-
pipelinesascode.tekton.dev/on-cel-expression: |
10-
event == "push" &&
11-
target_branch == "master" &&
12-
(
13-
files.all.exists(x, x.matches('bundle/')) ||
14-
files.all.exists(x, x.matches('bundle.Dockerfile')) ||
15-
files.all.exists(x, x.matches('.tekton/openshift-gitops-operator-bundle-push.yaml'))
16-
)
9+
pipelinesascode.tekton.dev/on-cel-expression: "event == \"push\" && \ntarget_branch
10+
== \"master\" &&\n(\n files.all.exists(x, x.matches('bundle/')) ||\n files.all.exists(x,
11+
x.matches('bundle.Dockerfile')) ||\n files.all.exists(x, x.matches('.tekton/openshift-gitops-operator-bundle-push.yaml'))\n)\n"
1712
creationTimestamp: null
1813
labels:
1914
appstudio.openshift.io/application: openshift-gitops-operator
@@ -32,13 +27,13 @@ spec:
3227
- name: dockerfile
3328
value: bundle.Dockerfile
3429
- name: hermetic
35-
value: true
30+
value: "true"
3631
- name: build-platforms
3732
value:
38-
- linux/x86_64
39-
- linux/arm64
40-
- linux/ppc64le
41-
- linux/s390x
33+
- linux/x86_64
34+
- linux/arm64
35+
- linux/ppc64le
36+
- linux/s390x
4237
pipelineSpec:
4338
description: |
4439
This pipeline is ideal for building multi-arch container images from a Containerfile while maintaining trust after pipeline customization.
@@ -469,7 +464,8 @@ spec:
469464
optional: true
470465
- name: netrc
471466
optional: true
472-
taskRunTemplate: {}
467+
taskRunTemplate:
468+
serviceAccountName: build-pipeline-openshift-gitops-operator-bundle
473469
workspaces:
474470
- name: git-auth
475471
secret:

0 commit comments

Comments
 (0)