Let users update resources
This commit is contained in:
parent
ba3d3ecd74
commit
40aa903039
@ -90,7 +90,7 @@ func (acc *Account) Create(ctx context.Context) error {
|
|||||||
// Prepare RBAC resources for the account
|
// Prepare RBAC resources for the account
|
||||||
role := &rbacv1.Role{
|
role := &rbacv1.Role{
|
||||||
ObjectMeta: metav1.ObjectMeta{Name: acc.Data.Username, Namespace: acc.Data.UUID},
|
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 {
|
if err := client.Create(ctx, role); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user