mirror of https://github.com/goharbor/harbor.git
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: ResourceSecurityHub, Action: ActionList},
|
||||||
|
|
||||||
{Resource: ResourceCatalog, Action: ActionRead},
|
{Resource: ResourceCatalog, Action: ActionRead},
|
||||||
|
|
||||||
|
{Resource: ResourceQuota, Action: ActionRead},
|
||||||
|
{Resource: ResourceQuota, Action: ActionList},
|
||||||
|
{Resource: ResourceQuota, Action: ActionUpdate},
|
||||||
},
|
},
|
||||||
"Project": {
|
"Project": {
|
||||||
{Resource: ResourceLog, Action: ActionList},
|
{Resource: ResourceLog, Action: ActionList},
|
||||||
|
@ -221,6 +225,8 @@ var (
|
||||||
{Resource: ResourceLabel, Action: ActionDelete},
|
{Resource: ResourceLabel, Action: ActionDelete},
|
||||||
{Resource: ResourceLabel, Action: ActionList},
|
{Resource: ResourceLabel, Action: ActionList},
|
||||||
{Resource: ResourceLabel, Action: ActionUpdate},
|
{Resource: ResourceLabel, Action: ActionUpdate},
|
||||||
|
|
||||||
|
{Resource: ResourceQuota, Action: ActionRead},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
|
@ -77,6 +77,7 @@ export const ACTION_RESOURCE_I18N_MAP = {
|
||||||
'immutable-tag': 'ROBOT_ACCOUNT.IMMUTABLE_TAG',
|
'immutable-tag': 'ROBOT_ACCOUNT.IMMUTABLE_TAG',
|
||||||
log: 'ROBOT_ACCOUNT.LOG',
|
log: 'ROBOT_ACCOUNT.LOG',
|
||||||
'notification-policy': 'ROBOT_ACCOUNT.NOTIFICATION_POLICY',
|
'notification-policy': 'ROBOT_ACCOUNT.NOTIFICATION_POLICY',
|
||||||
|
quota: 'ROBOT_ACCOUNT.QUOTA',
|
||||||
};
|
};
|
||||||
|
|
||||||
export function convertKey(key: string) {
|
export function convertKey(key: string) {
|
||||||
|
|
|
@ -411,6 +411,7 @@
|
||||||
"IMMUTABLE_TAG": "Immutable Tag",
|
"IMMUTABLE_TAG": "Immutable Tag",
|
||||||
"LOG": "Log",
|
"LOG": "Log",
|
||||||
"NOTIFICATION_POLICY": "Notification Policy",
|
"NOTIFICATION_POLICY": "Notification Policy",
|
||||||
|
"QUOTA": "Quota",
|
||||||
"BACK": "Back",
|
"BACK": "Back",
|
||||||
"NEXT": "Next",
|
"NEXT": "Next",
|
||||||
"FINISH": "Finish",
|
"FINISH": "Finish",
|
||||||
|
|
|
@ -411,6 +411,7 @@
|
||||||
"IMMUTABLE_TAG": "Immutable Tag",
|
"IMMUTABLE_TAG": "Immutable Tag",
|
||||||
"LOG": "Log",
|
"LOG": "Log",
|
||||||
"NOTIFICATION_POLICY": "Notification Policy",
|
"NOTIFICATION_POLICY": "Notification Policy",
|
||||||
|
"QUOTA": "Quota",
|
||||||
"BACK": "Back",
|
"BACK": "Back",
|
||||||
"NEXT": "Next",
|
"NEXT": "Next",
|
||||||
"FINISH": "Finish",
|
"FINISH": "Finish",
|
||||||
|
|
|
@ -412,6 +412,7 @@
|
||||||
"IMMUTABLE_TAG": "Immutable Tag",
|
"IMMUTABLE_TAG": "Immutable Tag",
|
||||||
"LOG": "Log",
|
"LOG": "Log",
|
||||||
"NOTIFICATION_POLICY": "Notification Policy",
|
"NOTIFICATION_POLICY": "Notification Policy",
|
||||||
|
"QUOTA": "Quota",
|
||||||
"BACK": "Back",
|
"BACK": "Back",
|
||||||
"NEXT": "Next",
|
"NEXT": "Next",
|
||||||
"FINISH": "Finish",
|
"FINISH": "Finish",
|
||||||
|
|
|
@ -403,6 +403,7 @@
|
||||||
"IMMUTABLE_TAG": "Immutable Tag",
|
"IMMUTABLE_TAG": "Immutable Tag",
|
||||||
"LOG": "Log",
|
"LOG": "Log",
|
||||||
"NOTIFICATION_POLICY": "Notification Policy",
|
"NOTIFICATION_POLICY": "Notification Policy",
|
||||||
|
"QUOTA": "Quota",
|
||||||
"BACK": "Back",
|
"BACK": "Back",
|
||||||
"NEXT": "Next",
|
"NEXT": "Next",
|
||||||
"FINISH": "Finish",
|
"FINISH": "Finish",
|
||||||
|
|
|
@ -409,6 +409,7 @@
|
||||||
"IMMUTABLE_TAG": "Immutable Tag",
|
"IMMUTABLE_TAG": "Immutable Tag",
|
||||||
"LOG": "Log",
|
"LOG": "Log",
|
||||||
"NOTIFICATION_POLICY": "Notification Policy",
|
"NOTIFICATION_POLICY": "Notification Policy",
|
||||||
|
"QUOTA": "Quota",
|
||||||
"BACK": "Back",
|
"BACK": "Back",
|
||||||
"NEXT": "Next",
|
"NEXT": "Next",
|
||||||
"FINISH": "Finish",
|
"FINISH": "Finish",
|
||||||
|
|
|
@ -411,6 +411,7 @@
|
||||||
"IMMUTABLE_TAG": "Immutable Tag",
|
"IMMUTABLE_TAG": "Immutable Tag",
|
||||||
"LOG": "Log",
|
"LOG": "Log",
|
||||||
"NOTIFICATION_POLICY": "Notification Policy",
|
"NOTIFICATION_POLICY": "Notification Policy",
|
||||||
|
"QUOTA": "Quota",
|
||||||
"BACK": "Back",
|
"BACK": "Back",
|
||||||
"NEXT": "Next",
|
"NEXT": "Next",
|
||||||
"FINISH": "Finish",
|
"FINISH": "Finish",
|
||||||
|
|
|
@ -410,6 +410,7 @@
|
||||||
"IMMUTABLE_TAG": "Immutable Tag",
|
"IMMUTABLE_TAG": "Immutable Tag",
|
||||||
"LOG": "Log",
|
"LOG": "Log",
|
||||||
"NOTIFICATION_POLICY": "Notification Policy",
|
"NOTIFICATION_POLICY": "Notification Policy",
|
||||||
|
"QUOTA": "Quota",
|
||||||
"BACK": "Back",
|
"BACK": "Back",
|
||||||
"NEXT": "Next",
|
"NEXT": "Next",
|
||||||
"FINISH": "Finish",
|
"FINISH": "Finish",
|
||||||
|
|
Loading…
Reference in New Issue