From e541ba6996e63ae7a2f91f2102b9571d58396dad Mon Sep 17 00:00:00 2001 From: Naeel Date: Sun, 19 Apr 2026 09:55:55 +0300 Subject: [PATCH] feat: RBAC ClusterRole for console namespace management --- deploy/rbac/console-ns-manager.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 deploy/rbac/console-ns-manager.yaml diff --git a/deploy/rbac/console-ns-manager.yaml b/deploy/rbac/console-ns-manager.yaml new file mode 100644 index 0000000..7bc235b --- /dev/null +++ b/deploy/rbac/console-ns-manager.yaml @@ -0,0 +1,27 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: fission-console-ns-manager +rules: +- apiGroups: [""] + resources: ["namespaces"] + verbs: ["get", "create"] +- apiGroups: ["fission.io"] + resources: ["*"] + verbs: ["*"] +- apiGroups: ["rbac.authorization.k8s.io"] + resources: ["rolebindings"] + verbs: ["get", "create"] +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: fission-console-ns-manager +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: fission-console-ns-manager +subjects: +- kind: ServiceAccount + name: fission-console + namespace: fission