From aef1acb87a634508501c94491d4df250cc927681 Mon Sep 17 00:00:00 2001 From: Chad Roberts Date: Thu, 7 Mar 2024 15:37:33 -0500 Subject: [PATCH] [2.8] Add RBAC for statefulsets/scale for the Manage Workloads RoleTemplate --- pkg/data/management/role_data.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/data/management/role_data.go b/pkg/data/management/role_data.go index 72a1762b59a..670ce090364 100644 --- a/pkg/data/management/role_data.go +++ b/pkg/data/management/role_data.go @@ -352,7 +352,7 @@ func addRoles(wrangler *wrangler.Context, management *config.ManagementContext) addRule().apiGroups("").resources("pods", "pods/attach", "pods/exec", "pods/portforward", "pods/proxy", "replicationcontrollers", "replicationcontrollers/scale").verbs("*"). addRule().apiGroups("apps").resources("daemonsets", "deployments", "deployments/rollback", "deployments/scale", "replicasets", - "replicasets/scale", "statefulsets").verbs("*"). + "replicasets/scale", "statefulsets", "statefulsets/scale").verbs("*"). addRule().apiGroups("autoscaling").resources("horizontalpodautoscalers").verbs("*"). addRule().apiGroups("batch").resources("cronjobs", "jobs").verbs("*"). addRule().apiGroups("").resources("limitranges", "pods/log", "pods/status", "replicationcontrollers/status", "resourcequotas", "resourcequotas/status", "bindings").verbs("get", "list", "watch").