Skip to content

Commit fd57b20

Browse files
committed
pkg/resource,manifests: add SAR capability
1 parent 053bc77 commit fd57b20

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

manifests/02-rbac.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,12 @@ rules:
223223
- imagecontentsourcepolicies
224224
verbs:
225225
- list
226+
- apiGroups:
227+
- "authorization.k8s.io"
228+
resources:
229+
- subjectaccessreviews
230+
verbs:
231+
- create
226232
---
227233
kind: Role
228234
apiVersion: rbac.authorization.k8s.io/v1

pkg/resource/clusterrole.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,13 @@ func (gcr *generatorClusterRole) expected() (runtime.Object, error) {
103103
"imagetagmirrorsets",
104104
},
105105
},
106+
{
107+
Verbs: []string{"create"},
108+
APIGroups: []string{"authorization.k8s.io"},
109+
Resources: []string{
110+
"subjectaccessreviews",
111+
},
112+
},
106113
},
107114
}
108115

0 commit comments

Comments
 (0)