Skip to content

Commit

Permalink
test file to test role bindings in different namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
edcdavid committed Nov 3, 2023
1 parent b61fcca commit b03e869
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions examples/accesscontrol/rolebinding-other-namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: test2
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
namespace: test2
name: testadmin
rules:
- apiGroups: ["*"]
resources: ["*"]
verbs: ["*"]
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: testadminbinding
namespace: test2
subjects:
- kind: ServiceAccount
name: test-pod-sa
namespace: tnf
apiGroup: ""
roleRef:
kind: Role
name: testadmin
apiGroup: ""

0 comments on commit b03e869

Please sign in to comment.