From 0234f9fe9d70fd7d46fa9ea9e036c3f0da7b6fa9 Mon Sep 17 00:00:00 2001 From: Vaibhav Pathak Date: Fri, 20 Mar 2026 15:46:12 +0530 Subject: [PATCH] RBAC updated --- templates/backstage-rbac.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/templates/backstage-rbac.yaml b/templates/backstage-rbac.yaml index 7e4b77e..45acb59 100644 --- a/templates/backstage-rbac.yaml +++ b/templates/backstage-rbac.yaml @@ -22,6 +22,16 @@ rules: resources: ["pods/log"] verbs: ["get", "list"] + # ServiceAccount token creation for kubeconfig generation + - apiGroups: [""] + resources: ["serviceaccounts/token"] + verbs: ["create"] + + # Read ServiceAccounts to verify existence + - apiGroups: [""] + resources: ["serviceaccounts"] + verbs: ["get", "list"] + - apiGroups: ["apps"] resources: ["deployments", "replicasets"] verbs: ["get", "list", "watch"]