File tree Expand file tree Collapse file tree 2 files changed +13
-22
lines changed Expand file tree Collapse file tree 2 files changed +13
-22
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ You can refer the ApprovalTask in the pipeline similar to how we refer Task toda
15
15
- foo # individual user
16
16
- bar
17
17
- tekton
18
- - group:tekton # users in group
18
+ - group:tekton # groupName
19
19
- group:example
20
20
- name : numberOfApprovalsRequired
21
21
value : 2
Original file line number Diff line number Diff line change @@ -36,13 +36,13 @@ spec:
36
36
message : " "
37
37
- name : dev-team
38
38
type : Group
39
- input : pending
39
+ input : approve
40
40
message : " "
41
41
users :
42
42
- name : charlie
43
- input : pending
43
+ input : approve
44
44
- name : diana
45
- input : pending
45
+ input : approve
46
46
numberOfApprovalsRequired : 2
47
47
description : " Approve deployment to production environment"
48
48
status :
@@ -140,15 +140,15 @@ spec:
140
140
approvers:
141
141
- name: dev-team
142
142
type: Group
143
- input: pending
144
- users:
143
+ input: reject
144
+ users: # Users from the group are only added if the approve/reject
145
145
- name: alice
146
- input: pending
146
+ input: approve
147
147
- name: bob
148
- input: pending
148
+ input: approve
149
149
- name: charlie
150
- input: pending
151
- numberOfApprovalsRequired: 1
150
+ input: reject
151
+ numberOfApprovalsRequired: 3
152
152
description: "Any member of dev-team can approve"
153
153
` ` `
154
154
@@ -172,17 +172,12 @@ spec:
172
172
input: pending
173
173
users:
174
174
- name: tester1
175
- input: pending
175
+ input: approve
176
176
- name: tester2
177
- input: pending
177
+ input: approve
178
178
- name: security-team
179
179
type: Group
180
180
input: pending
181
- users:
182
- - name: security-lead
183
- input: pending
184
- - name: security-analyst
185
- input: pending
186
181
numberOfApprovalsRequired: 3
187
182
description: "Requires tech lead + QA team member + security team member"
188
183
` ` `
@@ -246,11 +241,7 @@ status:
246
241
message: "LGTM for production deployment"
247
242
- name: bob
248
243
type: User
249
- response: pending
250
- - name: security-team
251
- type: Group
252
- response: pending
253
- groupMembers: []
244
+ response: approved
254
245
` ` `
255
246
256
247
# ## Approved State
You can’t perform that action at this time.
0 commit comments