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 405442c63..1b17b88f9 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 @@ -31,7 +31,7 @@ export enum Resource { REPO = 'repository', HELM_CHART = 'helm-chart', HELM_CHART_VERSION = 'helm-chart-version', - ARTIFACT = 'artifact' + ARTIFACT = 'artifact', } export enum Action { @@ -92,6 +92,11 @@ export const INITIAL_ACCESSES: FrontAccess[] = [ "action": "create", "checked": true }, + { + "resource": "artifact-label", + "action": "delete", + "checked": true + }, { "resource": "scan", "action": "create", @@ -112,6 +117,16 @@ export const INITIAL_ACCESSES: FrontAccess[] = [ "action": "list", "checked": true }, + { + "resource": "helm-chart-version-label", + "action": "create", + "checked": true + }, + { + "resource": "helm-chart-version-label", + "action": "delete", + "checked": true + }, ]; export const ACTION_RESOURCE_I18N_MAP = { @@ -126,10 +141,11 @@ export const ACTION_RESOURCE_I18N_MAP = { 'helm-chart-version': 'SYSTEM_ROBOT.HELM_VERSION', 'tag': 'REPLICATION.TAG', 'artifact-label': 'SYSTEM_ROBOT.ARTIFACT_LABEL', + 'helm-chart-version-label': 'SYSTEM_ROBOT.HELM_LABEL', 'scan': 'SYSTEM_ROBOT.SCAN', 'scanner-pull': 'SYSTEM_ROBOT.SCANNER_PULL', 'stop': 'SYSTEM_ROBOT.STOP', - 'list': 'SYSTEM_ROBOT.LIST' + 'list': 'SYSTEM_ROBOT.LIST', }; export enum ExpirationType { diff --git a/src/portal/src/i18n/lang/de-de-lang.json b/src/portal/src/i18n/lang/de-de-lang.json index 86d70c204..699536b57 100644 --- a/src/portal/src/i18n/lang/de-de-lang.json +++ b/src/portal/src/i18n/lang/de-de-lang.json @@ -1703,6 +1703,7 @@ "PUSH_PERMISSION_TOOLTIP": "Push permission can not work alone, it must work with pull permission", "STOP": "Stop", "LIST": "List", - "REPOSITORY": "Repository" + "REPOSITORY": "Repository", + "HELM_LABEL": "Helm Chart label" } } diff --git a/src/portal/src/i18n/lang/en-us-lang.json b/src/portal/src/i18n/lang/en-us-lang.json index 0aacbb973..22d09d461 100644 --- a/src/portal/src/i18n/lang/en-us-lang.json +++ b/src/portal/src/i18n/lang/en-us-lang.json @@ -1703,6 +1703,7 @@ "PUSH_PERMISSION_TOOLTIP": "Push permission can not work alone, it must work with pull permission", "STOP": "Stop", "LIST": "List", - "REPOSITORY": "Repository" + "REPOSITORY": "Repository", + "HELM_LABEL": "Helm Chart label" } } diff --git a/src/portal/src/i18n/lang/es-es-lang.json b/src/portal/src/i18n/lang/es-es-lang.json index a53ee5af8..7ed52de5b 100644 --- a/src/portal/src/i18n/lang/es-es-lang.json +++ b/src/portal/src/i18n/lang/es-es-lang.json @@ -1702,6 +1702,7 @@ "PUSH_PERMISSION_TOOLTIP": "Push permission can not work alone, it must work with pull permission", "STOP": "Stop", "LIST": "List", - "REPOSITORY": "Repository" + "REPOSITORY": "Repository", + "HELM_LABEL": "Helm Chart label" } } diff --git a/src/portal/src/i18n/lang/fr-fr-lang.json b/src/portal/src/i18n/lang/fr-fr-lang.json index 8c7113680..5d9c4021d 100644 --- a/src/portal/src/i18n/lang/fr-fr-lang.json +++ b/src/portal/src/i18n/lang/fr-fr-lang.json @@ -1671,6 +1671,7 @@ "PUSH_PERMISSION_TOOLTIP": "Push permission can not work alone, it must work with pull permission", "STOP": "Stop", "LIST": "List", - "REPOSITORY": "Repository" + "REPOSITORY": "Repository", + "HELM_LABEL": "Helm Chart label" } } diff --git a/src/portal/src/i18n/lang/pt-br-lang.json b/src/portal/src/i18n/lang/pt-br-lang.json index 1736c4b3a..0998bc345 100644 --- a/src/portal/src/i18n/lang/pt-br-lang.json +++ b/src/portal/src/i18n/lang/pt-br-lang.json @@ -1699,7 +1699,7 @@ "PUSH_PERMISSION_TOOLTIP": "Permissões de envio (push) presume também a permissão e recebimento (pull).", "STOP": "Stop", "LIST": "List", - "REPOSITORY": "Repository" + "REPOSITORY": "Repository", + "HELM_LABEL": "Helm Chart label" } - } diff --git a/src/portal/src/i18n/lang/tr-tr-lang.json b/src/portal/src/i18n/lang/tr-tr-lang.json index 88bf0cf86..72f996393 100644 --- a/src/portal/src/i18n/lang/tr-tr-lang.json +++ b/src/portal/src/i18n/lang/tr-tr-lang.json @@ -1703,6 +1703,7 @@ "PUSH_PERMISSION_TOOLTIP": "Push permission can not work alone, it must work with pull permission", "STOP": "Stop", "LIST": "List", - "REPOSITORY": "Repository" + "REPOSITORY": "Repository", + "HELM_LABEL": "Helm Chart label" } } diff --git a/src/portal/src/i18n/lang/zh-cn-lang.json b/src/portal/src/i18n/lang/zh-cn-lang.json index 952c651cf..4a20d42f6 100644 --- a/src/portal/src/i18n/lang/zh-cn-lang.json +++ b/src/portal/src/i18n/lang/zh-cn-lang.json @@ -1701,6 +1701,7 @@ "PUSH_PERMISSION_TOOLTIP": "推送权限无法单独工作,请在选择推送权限的时,确保已经勾选了拉取权限", "STOP": "停止", "LIST": "查询", - "REPOSITORY": "仓库" + "REPOSITORY": "仓库", + "HELM_LABEL": "Helm Chart label" } } diff --git a/src/portal/src/i18n/lang/zh-tw-lang.json b/src/portal/src/i18n/lang/zh-tw-lang.json index a01bc373e..3a568f5b8 100644 --- a/src/portal/src/i18n/lang/zh-tw-lang.json +++ b/src/portal/src/i18n/lang/zh-tw-lang.json @@ -1688,6 +1688,7 @@ "PUSH_PERMISSION_TOOLTIP": "Push permission can not work alone, it must work with pull permission", "STOP": "Stop", "LIST": "List", - "REPOSITORY": "Repository" + "REPOSITORY": "Repository", + "HELM_LABEL": "Helm Chart label" } } diff --git a/tests/resources/Harbor-Pages/Robot_Account.robot b/tests/resources/Harbor-Pages/Robot_Account.robot index 29dcdbe03..4e18616ae 100644 --- a/tests/resources/Harbor-Pages/Robot_Account.robot +++ b/tests/resources/Harbor-Pages/Robot_Account.robot @@ -27,9 +27,12 @@ Create A Random Permission Item List ... Read Helm Chart ... Create Helm Chart Version ... Delete Helm Chart Version + ... Create Helm Chart label + ... Delete Helm Chart label ... Create Tag ... Delete Tag ... Create Artifact label + ... Delete Artifact label ... Create Scan ... Stop Scan ... List Artifact