Skip to content

Commit 9e3c760

Browse files
author
konflux
committed
Konflux build pipeline service account migration for osc-must-gather
Signed-off-by: konflux <[email protected]>
1 parent 79d6fff commit 9e3c760

File tree

2 files changed

+26
-14
lines changed

2 files changed

+26
-14
lines changed

.tekton/osc-must-gather-pull-request.yaml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ 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: event == "pull_request" && target_branch == "devel" && ( "must-gather/***".pathChanged() || ".tekton/osc-must-gather-pull-request.yaml".pathChanged() )
11-
creationTimestamp:
10+
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch
11+
== "devel" && ( "must-gather/***".pathChanged() || ".tekton/osc-must-gather-pull-request.yaml".pathChanged()
12+
)
13+
creationTimestamp: null
1214
labels:
1315
appstudio.openshift.io/application: openshift-sandboxed-containers
1416
appstudio.openshift.io/component: osc-must-gather
@@ -83,11 +85,13 @@ spec:
8385
name: output-image
8486
type: string
8587
- default: .
86-
description: Path to the source code of an application's component from where to build image.
88+
description: Path to the source code of an application's component from where
89+
to build image.
8790
name: path-context
8891
type: string
8992
- default: Dockerfile
90-
description: Path to the Dockerfile inside the context specified by parameter path-context
93+
description: Path to the Dockerfile inside the context specified by parameter
94+
path-context
9195
name: dockerfile
9296
type: string
9397
- default: "false"
@@ -107,7 +111,8 @@ spec:
107111
name: prefetch-input
108112
type: string
109113
- default: ""
110-
description: Image tag expiration time, time values could be something like 1h, 2d, 3w for hours, days, and weeks, respectively.
114+
description: Image tag expiration time, time values could be something like
115+
1h, 2d, 3w for hours, days, and weeks, respectively.
111116
name: image-expires-after
112117
- default: "false"
113118
description: Build a source image.
@@ -595,12 +600,13 @@ spec:
595600
optional: true
596601
- name: netrc
597602
optional: true
598-
taskRunTemplate: {}
603+
taskRunTemplate:
604+
serviceAccountName: build-pipeline-osc-must-gather
599605
workspaces:
600606
- name: workspace
601607
volumeClaimTemplate:
602608
metadata:
603-
creationTimestamp:
609+
creationTimestamp: null
604610
spec:
605611
accessModes:
606612
- ReadWriteOnce

.tekton/osc-must-gather-push.yaml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ 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: event == "push" && target_branch == "devel" && ( "must-gather/***".pathChanged() || ".tekton/osc-must-gather-push.yaml".pathChanged() )
10-
creationTimestamp:
9+
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch
10+
== "devel" && ( "must-gather/***".pathChanged() || ".tekton/osc-must-gather-push.yaml".pathChanged()
11+
)
12+
creationTimestamp: null
1113
labels:
1214
appstudio.openshift.io/application: openshift-sandboxed-containers
1315
appstudio.openshift.io/component: osc-must-gather
@@ -80,11 +82,13 @@ spec:
8082
name: output-image
8183
type: string
8284
- default: .
83-
description: Path to the source code of an application's component from where to build image.
85+
description: Path to the source code of an application's component from where
86+
to build image.
8487
name: path-context
8588
type: string
8689
- default: Dockerfile
87-
description: Path to the Dockerfile inside the context specified by parameter path-context
90+
description: Path to the Dockerfile inside the context specified by parameter
91+
path-context
8892
name: dockerfile
8993
type: string
9094
- default: "false"
@@ -104,7 +108,8 @@ spec:
104108
name: prefetch-input
105109
type: string
106110
- default: ""
107-
description: Image tag expiration time, time values could be something like 1h, 2d, 3w for hours, days, and weeks, respectively.
111+
description: Image tag expiration time, time values could be something like
112+
1h, 2d, 3w for hours, days, and weeks, respectively.
108113
name: image-expires-after
109114
- default: "false"
110115
description: Build a source image.
@@ -592,12 +597,13 @@ spec:
592597
optional: true
593598
- name: netrc
594599
optional: true
595-
taskRunTemplate: {}
600+
taskRunTemplate:
601+
serviceAccountName: build-pipeline-osc-must-gather
596602
workspaces:
597603
- name: workspace
598604
volumeClaimTemplate:
599605
metadata:
600-
creationTimestamp:
606+
creationTimestamp: null
601607
spec:
602608
accessModes:
603609
- ReadWriteOnce

0 commit comments

Comments
 (0)