From 40aa903039a27a37a9ebeea59169fb70ad73f563 Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Thu, 2 May 2024 13:46:01 +0200 Subject: [PATCH] Let users update resources --- internal/controllers/accounts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/controllers/accounts.go b/internal/controllers/accounts.go index 145cb53..6812b2d 100644 --- a/internal/controllers/accounts.go +++ b/internal/controllers/accounts.go @@ -90,7 +90,7 @@ func (acc *Account) Create(ctx context.Context) error { // Prepare RBAC resources for the account role := &rbacv1.Role{ ObjectMeta: metav1.ObjectMeta{Name: acc.Data.Username, Namespace: acc.Data.UUID}, - Rules: []rbacv1.PolicyRule{{Verbs: []string{"get", "watch", "list", "create", "patch", "delete"}, APIGroups: []string{""}, Resources: []string{"configmaps", "secrets"}}}, + Rules: []rbacv1.PolicyRule{{Verbs: []string{"get", "watch", "list", "create", "patch", "delete", "update"}, APIGroups: []string{""}, Resources: []string{"configmaps", "secrets"}}}, } if err := client.Create(ctx, role); err != nil {