mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 07:57:07 +00:00
21 lines
No EOL
554 B
YAML
21 lines
No EOL
554 B
YAML
apiVersion: rbac.authorization.k8s.io/v1beta1
|
|
kind: RoleBinding
|
|
metadata:
|
|
name: policyviolation
|
|
# change namespace below to create rolebinding for the namespace admin
|
|
namespace: default
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: ClusterRole
|
|
name: policyviolation
|
|
subjects:
|
|
# configure below to access policy violation for the namespace admin
|
|
- kind: ServiceAccount
|
|
name: default
|
|
namespace: default
|
|
# - apiGroup: rbac.authorization.k8s.io
|
|
# kind: User
|
|
# name:
|
|
# - apiGroup: rbac.authorization.k8s.io
|
|
# kind: Group
|
|
# name: |