diff --git a/examples/accesscontrol/rolebinding-other-namespace.yaml b/examples/accesscontrol/rolebinding-other-namespace.yaml new file mode 100644 index 00000000..c51d1cdd --- /dev/null +++ b/examples/accesscontrol/rolebinding-other-namespace.yaml @@ -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: ""