Let users update resources

This commit is contained in:
Nikolai Rodionov 2024-05-02 13:46:01 +02:00
parent ba3d3ecd74
commit 40aa903039
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD

View File

@ -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 {