refactor: fix displayname and description for serviceaccount role (#41946)

* refactor: fix displayname and description for serviceaccount role

* add: ActionWrite, ActionCreate

* refactor: update description
This commit is contained in:
Eric Leijonmarck 2021-11-19 11:39:50 +00:00 committed by GitHub
parent 8ccd7599bd
commit 253da4a936
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions

View File

@ -8,11 +8,19 @@ import (
var (
role = accesscontrol.RoleRegistration{
Role: accesscontrol.RoleDTO{
Version: 2,
Version: 3,
Name: "fixed:serviceaccounts:writer",
Description: "",
DisplayName: "Service accounts writer",
Description: "Create, delete, read, or query service accounts.",
Group: "Service accounts",
Permissions: []accesscontrol.Permission{
{
Action: serviceaccounts.ActionRead,
Scope: serviceaccounts.ScopeAll,
},
{
Action: serviceaccounts.ActionCreate,
},
{
Action: serviceaccounts.ActionDelete,
Scope: serviceaccounts.ScopeAll,

View File

@ -8,5 +8,8 @@ var (
)
const (
ActionRead = "serviceaccounts:read"
ActionWrite = "serviceaccounts:write"
ActionCreate = "serviceaccounts:create"
ActionDelete = "serviceaccounts:delete"
)