mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-22 23:51:27 +01:00
Robot Account CREATE / DELETE Label (#15815)
Signed-off-by: Aaron Layfield <aaron.layfield@gmail.com>
This commit is contained in:
parent
57431aa8cc
commit
7b75a456d3
@ -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 {
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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"
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -1701,6 +1701,7 @@
|
||||
"PUSH_PERMISSION_TOOLTIP": "推送权限无法单独工作,请在选择推送权限的时,确保已经勾选了拉取权限",
|
||||
"STOP": "停止",
|
||||
"LIST": "查询",
|
||||
"REPOSITORY": "仓库"
|
||||
"REPOSITORY": "仓库",
|
||||
"HELM_LABEL": "Helm Chart label"
|
||||
}
|
||||
}
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user