Add quota permissions to robot account (#19799)

Fix #19792

Signed-off-by: Yang Jiao <yang.jiao@broadcom.com>
Co-authored-by: Yang Jiao <yang.jiao@broadcom.com>
This commit is contained in:
Yang Jiao 2024-01-08 11:43:22 +08:00 committed by GitHub
parent de7ea2849e
commit 64a2296b58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 14 additions and 0 deletions

View File

@ -149,6 +149,10 @@ var (
{Resource: ResourceSecurityHub, Action: ActionList},
{Resource: ResourceCatalog, Action: ActionRead},
{Resource: ResourceQuota, Action: ActionRead},
{Resource: ResourceQuota, Action: ActionList},
{Resource: ResourceQuota, Action: ActionUpdate},
},
"Project": {
{Resource: ResourceLog, Action: ActionList},
@ -221,6 +225,8 @@ var (
{Resource: ResourceLabel, Action: ActionDelete},
{Resource: ResourceLabel, Action: ActionList},
{Resource: ResourceLabel, Action: ActionUpdate},
{Resource: ResourceQuota, Action: ActionRead},
},
}
)

View File

@ -77,6 +77,7 @@ export const ACTION_RESOURCE_I18N_MAP = {
'immutable-tag': 'ROBOT_ACCOUNT.IMMUTABLE_TAG',
log: 'ROBOT_ACCOUNT.LOG',
'notification-policy': 'ROBOT_ACCOUNT.NOTIFICATION_POLICY',
quota: 'ROBOT_ACCOUNT.QUOTA',
};
export function convertKey(key: string) {

View File

@ -411,6 +411,7 @@
"IMMUTABLE_TAG": "Immutable Tag",
"LOG": "Log",
"NOTIFICATION_POLICY": "Notification Policy",
"QUOTA": "Quota",
"BACK": "Back",
"NEXT": "Next",
"FINISH": "Finish",

View File

@ -411,6 +411,7 @@
"IMMUTABLE_TAG": "Immutable Tag",
"LOG": "Log",
"NOTIFICATION_POLICY": "Notification Policy",
"QUOTA": "Quota",
"BACK": "Back",
"NEXT": "Next",
"FINISH": "Finish",

View File

@ -412,6 +412,7 @@
"IMMUTABLE_TAG": "Immutable Tag",
"LOG": "Log",
"NOTIFICATION_POLICY": "Notification Policy",
"QUOTA": "Quota",
"BACK": "Back",
"NEXT": "Next",
"FINISH": "Finish",

View File

@ -403,6 +403,7 @@
"IMMUTABLE_TAG": "Immutable Tag",
"LOG": "Log",
"NOTIFICATION_POLICY": "Notification Policy",
"QUOTA": "Quota",
"BACK": "Back",
"NEXT": "Next",
"FINISH": "Finish",

View File

@ -409,6 +409,7 @@
"IMMUTABLE_TAG": "Immutable Tag",
"LOG": "Log",
"NOTIFICATION_POLICY": "Notification Policy",
"QUOTA": "Quota",
"BACK": "Back",
"NEXT": "Next",
"FINISH": "Finish",

View File

@ -411,6 +411,7 @@
"IMMUTABLE_TAG": "Immutable Tag",
"LOG": "Log",
"NOTIFICATION_POLICY": "Notification Policy",
"QUOTA": "Quota",
"BACK": "Back",
"NEXT": "Next",
"FINISH": "Finish",

View File

@ -410,6 +410,7 @@
"IMMUTABLE_TAG": "Immutable Tag",
"LOG": "Log",
"NOTIFICATION_POLICY": "Notification Policy",
"QUOTA": "Quota",
"BACK": "Back",
"NEXT": "Next",
"FINISH": "Finish",