diff --git a/src/common/rbac/const.go b/src/common/rbac/const.go index 3c64a8533..6d7128b71 100644 --- a/src/common/rbac/const.go +++ b/src/common/rbac/const.go @@ -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}, }, } ) diff --git a/src/portal/src/app/base/left-side-nav/system-robot-accounts/system-robot-util.ts b/src/portal/src/app/base/left-side-nav/system-robot-accounts/system-robot-util.ts index 49a88b2c0..f693753ad 100644 --- a/src/portal/src/app/base/left-side-nav/system-robot-accounts/system-robot-util.ts +++ b/src/portal/src/app/base/left-side-nav/system-robot-accounts/system-robot-util.ts @@ -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) { diff --git a/src/portal/src/i18n/lang/de-de-lang.json b/src/portal/src/i18n/lang/de-de-lang.json index ad9f73963..d4153297c 100644 --- a/src/portal/src/i18n/lang/de-de-lang.json +++ b/src/portal/src/i18n/lang/de-de-lang.json @@ -411,6 +411,7 @@ "IMMUTABLE_TAG": "Immutable Tag", "LOG": "Log", "NOTIFICATION_POLICY": "Notification Policy", + "QUOTA": "Quota", "BACK": "Back", "NEXT": "Next", "FINISH": "Finish", diff --git a/src/portal/src/i18n/lang/en-us-lang.json b/src/portal/src/i18n/lang/en-us-lang.json index cef160c1a..de35cbb6b 100644 --- a/src/portal/src/i18n/lang/en-us-lang.json +++ b/src/portal/src/i18n/lang/en-us-lang.json @@ -411,6 +411,7 @@ "IMMUTABLE_TAG": "Immutable Tag", "LOG": "Log", "NOTIFICATION_POLICY": "Notification Policy", + "QUOTA": "Quota", "BACK": "Back", "NEXT": "Next", "FINISH": "Finish", diff --git a/src/portal/src/i18n/lang/es-es-lang.json b/src/portal/src/i18n/lang/es-es-lang.json index e8050d9b5..55470b8fd 100644 --- a/src/portal/src/i18n/lang/es-es-lang.json +++ b/src/portal/src/i18n/lang/es-es-lang.json @@ -412,6 +412,7 @@ "IMMUTABLE_TAG": "Immutable Tag", "LOG": "Log", "NOTIFICATION_POLICY": "Notification Policy", + "QUOTA": "Quota", "BACK": "Back", "NEXT": "Next", "FINISH": "Finish", diff --git a/src/portal/src/i18n/lang/fr-fr-lang.json b/src/portal/src/i18n/lang/fr-fr-lang.json index 1bedcaf15..91b09b8b5 100644 --- a/src/portal/src/i18n/lang/fr-fr-lang.json +++ b/src/portal/src/i18n/lang/fr-fr-lang.json @@ -403,6 +403,7 @@ "IMMUTABLE_TAG": "Immutable Tag", "LOG": "Log", "NOTIFICATION_POLICY": "Notification Policy", + "QUOTA": "Quota", "BACK": "Back", "NEXT": "Next", "FINISH": "Finish", diff --git a/src/portal/src/i18n/lang/pt-br-lang.json b/src/portal/src/i18n/lang/pt-br-lang.json index cfc6ff691..686ac647a 100644 --- a/src/portal/src/i18n/lang/pt-br-lang.json +++ b/src/portal/src/i18n/lang/pt-br-lang.json @@ -409,6 +409,7 @@ "IMMUTABLE_TAG": "Immutable Tag", "LOG": "Log", "NOTIFICATION_POLICY": "Notification Policy", + "QUOTA": "Quota", "BACK": "Back", "NEXT": "Next", "FINISH": "Finish", diff --git a/src/portal/src/i18n/lang/tr-tr-lang.json b/src/portal/src/i18n/lang/tr-tr-lang.json index f1140f5ba..dafe49651 100644 --- a/src/portal/src/i18n/lang/tr-tr-lang.json +++ b/src/portal/src/i18n/lang/tr-tr-lang.json @@ -411,6 +411,7 @@ "IMMUTABLE_TAG": "Immutable Tag", "LOG": "Log", "NOTIFICATION_POLICY": "Notification Policy", + "QUOTA": "Quota", "BACK": "Back", "NEXT": "Next", "FINISH": "Finish", diff --git a/src/portal/src/i18n/lang/zh-tw-lang.json b/src/portal/src/i18n/lang/zh-tw-lang.json index a74cca648..281c2c94b 100644 --- a/src/portal/src/i18n/lang/zh-tw-lang.json +++ b/src/portal/src/i18n/lang/zh-tw-lang.json @@ -410,6 +410,7 @@ "IMMUTABLE_TAG": "Immutable Tag", "LOG": "Log", "NOTIFICATION_POLICY": "Notification Policy", + "QUOTA": "Quota", "BACK": "Back", "NEXT": "Next", "FINISH": "Finish",