1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 07:57:07 +00:00
kyverno/config/github/rbac.yaml
shuting b740e84f06
add e2e tests for mutate existing policies (#3703)
Signed-off-by: ShutingZhao <shuting@nirmata.com>
2022-04-27 21:44:52 +02:00

40 lines
No EOL
860 B
YAML
Executable file

---
# This role is required for e2e tests that generate and update a ClusterRole.
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kyverno:test-e2e
rules:
- apiGroups:
- "*"
resources:
- clusterroles
- rolebindings
- clusterrolebindings
- secrets
- configmaps
- deployments
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
---
# This role binding is required for e2e tests that generate and update a ClusterRole.
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
labels:
app: kyverno
name: kyverno:test-e2e
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: kyverno:test-e2e
subjects:
- kind: ServiceAccount
name: kyverno-service-account
namespace: kyverno