forked from shipwright-io/operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshipwright_build_controller_role.yaml
More file actions
55 lines (55 loc) · 2.46 KB
/
shipwright_build_controller_role.yaml
File metadata and controls
55 lines (55 loc) · 2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: build-controller
rules:
- apiGroups: ['shipwright.io']
resources: ['buildruns']
# The build-run-deletion annotation sets an owner ref on BuildRun objects.
# With the OwnerReferencesPermissionEnforcement admission controller enabled, controllers need the "delete" permission on objects that they set owner references on.
verbs: ['get', 'list', 'watch', 'update', 'delete', 'patch']
- apiGroups: ['shipwright.io']
# BuildRuns are set as the owners of Tekton TaskRuns.
# With the OwnerReferencesPermissionEnforcement admission controller enabled, controllers need the "update" permission on the finalizer of the parent object in the owner reference.
resources: ['buildruns/finalizers']
verbs: ['update']
- apiGroups: ['shipwright.io']
resources: ['buildruns/status']
verbs: ['update']
- apiGroups: ['shipwright.io']
resources: ['builds']
verbs: ['get', 'list', 'watch', 'patch']
- apiGroups: ['shipwright.io']
# The build-run-deletion annotation makes Builds an owner of BuildRun objects.
# With the OwnerReferencesPermissionEnforcement admission controller enabled, controllers need the "update" permission on the finalizer of the parent object in the owner reference.
resources: ['builds/finalizers']
verbs: ['update']
- apiGroups: ['shipwright.io']
resources: ['builds/status']
verbs: ['update']
- apiGroups: ['shipwright.io']
resources: ['buildstrategies']
verbs: ['get', 'list', 'watch', 'patch']
- apiGroups: ['shipwright.io']
resources: ['clusterbuildstrategies']
verbs: ['get', 'list', 'watch', 'patch']
- apiGroups: ['tekton.dev']
resources: ['taskruns']
# BuildRuns are set as the owners of Tekton TaskRuns.
# With the OwnerReferencesPermissionEnforcement admission controller enabled, controllers need the "delete" permission on objects that they set owner references on.
verbs: ['get', 'list', 'watch', 'create', 'delete', 'patch']
- apiGroups: ['tekton.dev']
resources: ['pipelineruns']
verbs: ['get', 'list', 'watch', 'create', 'delete', 'patch']
- apiGroups: ['']
resources: ['pods']
verbs: ['get', 'list', 'watch']
- apiGroups: ['']
resources: ['secrets']
verbs: ['get', 'list', 'watch']
- apiGroups: ['']
resources: ['configmaps']
verbs: ['list']
- apiGroups: ['']
resources: ['serviceaccounts']
verbs: ['get', 'list', 'watch', 'create', 'update', 'delete']