Skip to content

Commit 55de132

Browse files
authored
test file to test role bindings in different namespaces (#370)
* test file to test role bindings in different namespaces * linter
1 parent b61fcca commit 55de132

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
apiVersion: v1
3+
kind: Namespace
4+
metadata:
5+
name: test2
6+
---
7+
kind: Role
8+
apiVersion: rbac.authorization.k8s.io/v1
9+
metadata:
10+
namespace: test2
11+
name: testadmin
12+
rules:
13+
- apiGroups: ["*"]
14+
resources: ["*"]
15+
verbs: ["*"]
16+
---
17+
kind: RoleBinding
18+
apiVersion: rbac.authorization.k8s.io/v1
19+
metadata:
20+
name: testadminbinding
21+
namespace: test2
22+
subjects:
23+
- kind: ServiceAccount
24+
name: test-pod-sa
25+
namespace: tnf
26+
apiGroup: ""
27+
roleRef:
28+
kind: Role
29+
name: testadmin
30+
apiGroup: ""

0 commit comments

Comments
 (0)