mirror of
https://github.com/goharbor/harbor
synced 2025-04-25 21:36:23 +00:00
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:
parent
de7ea2849e
commit
64a2296b58
@ -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},
|
||||
},
|
||||
}
|
||||
)
|
||||
|
@ -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) {
|
||||
|
@ -411,6 +411,7 @@
|
||||
"IMMUTABLE_TAG": "Immutable Tag",
|
||||
"LOG": "Log",
|
||||
"NOTIFICATION_POLICY": "Notification Policy",
|
||||
"QUOTA": "Quota",
|
||||
"BACK": "Back",
|
||||
"NEXT": "Next",
|
||||
"FINISH": "Finish",
|
||||
|
@ -411,6 +411,7 @@
|
||||
"IMMUTABLE_TAG": "Immutable Tag",
|
||||
"LOG": "Log",
|
||||
"NOTIFICATION_POLICY": "Notification Policy",
|
||||
"QUOTA": "Quota",
|
||||
"BACK": "Back",
|
||||
"NEXT": "Next",
|
||||
"FINISH": "Finish",
|
||||
|
@ -412,6 +412,7 @@
|
||||
"IMMUTABLE_TAG": "Immutable Tag",
|
||||
"LOG": "Log",
|
||||
"NOTIFICATION_POLICY": "Notification Policy",
|
||||
"QUOTA": "Quota",
|
||||
"BACK": "Back",
|
||||
"NEXT": "Next",
|
||||
"FINISH": "Finish",
|
||||
|
@ -403,6 +403,7 @@
|
||||
"IMMUTABLE_TAG": "Immutable Tag",
|
||||
"LOG": "Log",
|
||||
"NOTIFICATION_POLICY": "Notification Policy",
|
||||
"QUOTA": "Quota",
|
||||
"BACK": "Back",
|
||||
"NEXT": "Next",
|
||||
"FINISH": "Finish",
|
||||
|
@ -409,6 +409,7 @@
|
||||
"IMMUTABLE_TAG": "Immutable Tag",
|
||||
"LOG": "Log",
|
||||
"NOTIFICATION_POLICY": "Notification Policy",
|
||||
"QUOTA": "Quota",
|
||||
"BACK": "Back",
|
||||
"NEXT": "Next",
|
||||
"FINISH": "Finish",
|
||||
|
@ -411,6 +411,7 @@
|
||||
"IMMUTABLE_TAG": "Immutable Tag",
|
||||
"LOG": "Log",
|
||||
"NOTIFICATION_POLICY": "Notification Policy",
|
||||
"QUOTA": "Quota",
|
||||
"BACK": "Back",
|
||||
"NEXT": "Next",
|
||||
"FINISH": "Finish",
|
||||
|
@ -410,6 +410,7 @@
|
||||
"IMMUTABLE_TAG": "Immutable Tag",
|
||||
"LOG": "Log",
|
||||
"NOTIFICATION_POLICY": "Notification Policy",
|
||||
"QUOTA": "Quota",
|
||||
"BACK": "Back",
|
||||
"NEXT": "Next",
|
||||
"FINISH": "Finish",
|
||||
|
Loading…
x
Reference in New Issue
Block a user