Skip to content

Commit d872888

Browse files
committed
feat: pipeline instead of triggertemplate
1 parent a5ce1e9 commit d872888

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

charts/team-ns/templates/builds/buildpack.yaml

-3
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,6 @@ spec:
116116
requests:
117117
storage: 1Gi
118118
status: {}
119-
- name: build-details
120-
buildName: {{ .name }}
121-
repoUrl: {{ .mode.buildpack.repoUrl }}
122119
- name: git-credentials
123120
secret:
124121
{{- if .externalRepo }}

charts/team-ns/templates/builds/docker.yaml

-3
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,6 @@ spec:
114114
requests:
115115
storage: 1Gi
116116
status: {}
117-
- name: build-details
118-
buildName: {{ .name }}
119-
repoUrl: {{ .mode.docker.repoUrl }}
120117
- name: git-credentials
121118
secret:
122119
{{- if .externalRepo }}

charts/team-ns/templates/rbac.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,10 @@ rules:
223223
apiVersion: rbac.authorization.k8s.io/v1
224224
kind: ClusterRole
225225
metadata:
226-
name: apl-gitea-operator-team-{{ $v.teamId }}-trigger-template-watcher
226+
name: apl-gitea-operator-team-{{ $v.teamId }}-pipeline-watcher
227227
rules:
228-
- apiGroups: ["triggers.tekton.dev"]
229-
resources: ["triggertemplates"]
228+
- apiGroups: ["tekton.dev"]
229+
resources: ["pipelines"]
230230
verbs: ["watch", "list", "get"]
231231
---
232232
# RoleBinding for the above Role in team namespace
@@ -247,7 +247,7 @@ roleRef:
247247
apiVersion: rbac.authorization.k8s.io/v1
248248
kind: ClusterRoleBinding
249249
metadata:
250-
name: apl-gitea-operator-team-{{ $v.teamId }}-trigger-template-binding
250+
name: apl-gitea-operator-team-{{ $v.teamId }}-pipeline-binding
251251
subjects:
252252
- kind: ServiceAccount
253253
namespace: apl-gitea-operator

0 commit comments

Comments
 (0)