Skip to content

Commit 42695c5

Browse files
red-hat-konflux[bot]konflux
andauthored
Konflux build pipeline service account migration for terraform-repo-executor-main (#70)
Signed-off-by: konflux <[email protected]> Co-authored-by: konflux <[email protected]>
1 parent 6246d88 commit 42695c5

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.tekton/terraform-repo-executor-main-pull-request.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ 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: "10"
10-
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "main"
10+
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch
11+
== "main"
1112
creationTimestamp: null
1213
labels:
1314
appstudio.openshift.io/application: terraform-repo-executor-main
@@ -32,15 +33,16 @@ spec:
3233
- name: target-stage
3334
value: test
3435
pipelineRef:
35-
resolver: git
3636
params:
3737
- name: url
3838
value: https://github.com/app-sre/shared-pipelines
3939
- name: revision
4040
value: main
4141
- name: pathInRepo
4242
value: pipelines/multi-arch-build-pipeline.yaml
43-
taskRunTemplate: {}
43+
resolver: git
44+
taskRunTemplate:
45+
serviceAccountName: build-pipeline-terraform-repo-executor-main
4446
workspaces:
4547
- name: workspace
4648
volumeClaimTemplate:

.tekton/terraform-repo-executor-main-push.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ 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: "25"
9-
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "main"
9+
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch
10+
== "main"
1011
creationTimestamp: null
1112
labels:
1213
appstudio.openshift.io/application: terraform-repo-executor-main
@@ -29,15 +30,16 @@ spec:
2930
- name: target-stage
3031
value: prod
3132
pipelineRef:
32-
resolver: git
3333
params:
3434
- name: url
3535
value: https://github.com/app-sre/shared-pipelines
3636
- name: revision
3737
value: main
3838
- name: pathInRepo
3939
value: pipelines/multi-arch-build-pipeline.yaml
40-
taskRunTemplate: {}
40+
resolver: git
41+
taskRunTemplate:
42+
serviceAccountName: build-pipeline-terraform-repo-executor-main
4143
workspaces:
4244
- name: workspace
4345
volumeClaimTemplate:
@@ -53,4 +55,4 @@ spec:
5355
- name: git-auth
5456
secret:
5557
secretName: '{{ git_auth_secret }}'
56-
status: {}
58+
status: {}

0 commit comments

Comments
 (0)