mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-09 17:37:12 +00:00
12 lines
393 B
YAML
12 lines
393 B
YAML
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
kind: ClusterRole
|
||
|
metadata:
|
||
|
name: kyverno-{{.Name}}-permission
|
||
|
labels:
|
||
|
{{- range .Controllers }}
|
||
|
rbac.kyverno.io/aggregate-to-{{ . }}: "true"
|
||
|
{{- end }}
|
||
|
rules:
|
||
|
- apiGroups: ["{{.ApiGroup}}"]
|
||
|
resources: ["{{.ResourceTypes | join ","}}"]
|
||
|
verbs: [{{- range $index, $verb := .Verbs}}{{if $index}}, {{end}}"{{$verb}}"{{end}}]
|