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 {