Skip to content

Commit

Permalink
add tests for role-binding that uses a cluster-role binding
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorvezani committed Oct 2, 2024
1 parent abb19da commit 5325a29
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: all-operations
rules:
- apiGroups: ["*"]
resources: ["*"]
verbs: ["*"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: all-operations
namespace: my-namespace
subjects:
- kind: User
name: example-user
apiGroup: rbac.authorization.k8s.io
roleRef:
kind: ClusterRole
name: all-operations
apiGroup: rbac.authorization.k8s.io

0 comments on commit 5325a29

Please sign in to comment.