You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: deploy/200-role.yaml
+20-4
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ metadata:
6
6
rules:
7
7
- apiGroups: ['']
8
8
resources: ['configmaps']
9
-
verbs: ['create', 'get', 'update']
9
+
verbs: ['get', 'create', 'update']
10
10
11
11
- apiGroups: ['']
12
12
resources: ['events']
@@ -21,7 +21,15 @@ metadata:
21
21
rules:
22
22
- apiGroups: ['shipwright.io']
23
23
resources: ['buildruns']
24
-
verbs: ['get', 'list', 'update', 'watch']
24
+
# The build-run-deletion annotation sets an owner ref on BuildRun objects.
25
+
# With the OwnerReferencesPermissionEnforcement admission controller enabled, controllers need the "delete" permission on objects that they set owner references on.
# BuildRuns are set as the owners of Tekton TaskRuns.
30
+
# With the OwnerReferencesPermissionEnforcement admission controller enabled, controllers need the "update" permission on the finalizer of the parent object in the owner reference.
31
+
resources: ['buildruns/finalizers']
32
+
verbs: ['update']
25
33
26
34
- apiGroups: ['shipwright.io']
27
35
resources: ['buildruns/status']
@@ -31,6 +39,12 @@ rules:
31
39
resources: ['builds']
32
40
verbs: ['get', 'list', 'watch']
33
41
42
+
- apiGroups: ['shipwright.io']
43
+
# The build-run-deletion annotation makes Builds an owner of BuildRun objects.
44
+
# With the OwnerReferencesPermissionEnforcement admission controller enabled, controllers need the "update" permission on the finalizer of the parent object in the owner reference.
45
+
resources: ['builds/finalizers']
46
+
verbs: ['update']
47
+
34
48
- apiGroups: ['shipwright.io']
35
49
resources: ['builds/status']
36
50
verbs: ['update']
@@ -45,7 +59,9 @@ rules:
45
59
46
60
- apiGroups: ['tekton.dev']
47
61
resources: ['taskruns']
48
-
verbs: ['get', 'create', 'list', 'watch']
62
+
# BuildRuns are set as the owners of Tekton TaskRuns.
63
+
# With the OwnerReferencesPermissionEnforcement admission controller enabled, controllers need the "delete" permission on objects that they set owner references on.
0 commit comments