mirror of
https://github.com/kyverno/policy-reporter.git
synced 2024-12-15 17:50:58 +00:00
40 lines
781 B
YAML
40 lines
781 B
YAML
---
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: policy-reporter
|
|
namespace: policy-reporter
|
|
labels:
|
|
app.kubernetes.io/name: policy-reporter
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRole
|
|
metadata:
|
|
labels:
|
|
rbac.authorization.k8s.io/aggregate-to-admin: "true"
|
|
name: policy-reporter
|
|
rules:
|
|
- apiGroups:
|
|
- '*'
|
|
resources:
|
|
- policyreports
|
|
- policyreports/status
|
|
- clusterpolicyreports
|
|
- clusterpolicyreports/status
|
|
verbs:
|
|
- get
|
|
- list
|
|
- watch
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRoleBinding
|
|
metadata:
|
|
name: policy-reporter
|
|
roleRef:
|
|
kind: ClusterRole
|
|
name: policy-reporter
|
|
apiGroup: rbac.authorization.k8s.io
|
|
subjects:
|
|
- kind: "ServiceAccount"
|
|
name: policy-reporter
|
|
namespace: policy-reporter
|