diff --git a/docs/administration/configure-project-quotas/_index.md b/docs/administration/configure-project-quotas/_index.md index 8ebaa8ee1..5d9853072 100644 --- a/docs/administration/configure-project-quotas/_index.md +++ b/docs/administration/configure-project-quotas/_index.md @@ -3,7 +3,7 @@ title: Configure Project Quotas weight: 25 --- -To exercise control over resource use, as a Harbor system administrator you can set quotas on projects. You can limit the number of tags that a project can contain and limit the amount of storage capacity that a project can consume. You can set default quotas that apply to all projects globally. +To exercise control over resource use, as a Harbor system administrator you can set quotas on projects. You can limit the amount of storage capacity that a project can consume. You can set default quotas that apply to all projects globally. {{< note >}} Default quotas apply to projects that are created after you set or change the default quota. The default quota is not applied to projects that already existed before you set it. @@ -11,7 +11,7 @@ Default quotas apply to projects that are created after you set or change the de You can also set quotas on individual projects. If you set a global default quota and you set different quotas on individual projects, the per-project quotas are applied. -By default, all projects have unlimited quotas for both tags and storage use. +By default, all projects have unlimited quotas for storage use. 1. Select the **Project Quotas** view. @@ -20,14 +20,12 @@ By default, all projects have unlimited quotas for both tags and storage use. ![Project quotas](../../img/project-quota2.png) - 1. For **Default artifact count**, enter the maximum number of tags that any project can contain at a given time, or enter `-1` to set the default to unlimited. 1. For **Default storage consumption**, enter the maximum quantity of storage that any project can consume, selecting `MB`, `GB`, or `TB` from the drop-down menu, or enter `-1` to set the default to unlimited. ![Project quotas](../../img/project-quota3.png) 1. Click **OK**. -1. To set quotas on an individual project, click the 3 vertical dots next to a project and select **Edit**. +1. To set quotas on an individual project, select the project and then click **Edit**. ![Project quotas](../../img/project-quota4.png) - 1. For **Default artifact count**, enter the maximum number of tags that this individual project can contain, or enter `-1` to set the default to unlimited. 1. For **Default storage consumption**, enter the maximum quantity of storage that this individual project can consume, selecting `MB`, `GB`, or `TB` from the drop-down menu. After you set quotas, you can see how much of their quotas each project has consumed. @@ -36,18 +34,16 @@ After you set quotas, you can see how much of their quotas each project has cons ### How Harbor Calculates Resource Usage -When setting project quotas, it is useful to know how Harbor calculates tag numbers and storage use, especially in relation to image pushing, retagging, and garbage collection. +When setting project quotas, it is useful to know how Harbor calculates storage use, especially in relation to image pushing, retagging, and garbage collection. - Harbor computes image size when blobs and manifests are pushed from the Docker client. -- Harbor computes tag counts when manifests are pushed from the Docker client. {{< note >}} When users push an image, the manifest is pushed last, after all of the associated blobs have been pushed successfully to the registry. If several images are pushed concurrently and if there is an insufficient number of tags left in the quota for all of them, images are accepted in the order that their manifests arrive. Consequently, an attempt to push an image might not be immediately rejected for exceeding the quota. This is because there was availability in the tag quota when the push was initiated, but by the time the manifest arrived the quota had been exhausted. {{< /note >}} - Shared blobs are only computed once per project. In Docker, blob sharing is defined globally. In Harbor, blob sharing is defined at the project level. As a consequence, overall storage usage can be greater than the actual disk capacity. - Retagging images reserves and releases resources: - - If you retag an image within a project, the tag count increases by one, but storage usage does not change because there are no new blobs or manifests. - - If you retag an image from one project to another, the tag count and storage usage both increase. + - If you retag an image within a project, the storage usage does not change because there are no new blobs or manifests. + - If you retag an image from one project to another, the storage usage will increase. - During garbage collection, Harbor frees the storage used by untagged blobs in the project. -- If the tag count reaches the limit, image blobs can be pushed into a project and storage usage is updated accordingly. You can consider these blobs to be untagged blobs. They can be removed by garbage collection, and the storage that they consume is returned after garbage colletion. -- Helm chart size is not calculated. Only tag counts are calculated. +- Helm chart size is not calculated. diff --git a/docs/img/add-robot-account-2.png b/docs/img/add-robot-account-2.png index 645d7970c..6cd4f49e1 100644 Binary files a/docs/img/add-robot-account-2.png and b/docs/img/add-robot-account-2.png differ diff --git a/docs/img/new-robot-account.png b/docs/img/new-robot-account.png index b81a85996..3e74269a1 100644 Binary files a/docs/img/new-robot-account.png and b/docs/img/new-robot-account.png differ diff --git a/docs/img/project-quota1.png b/docs/img/project-quota1.png index dfe7e453e..896d3a6ca 100644 Binary files a/docs/img/project-quota1.png and b/docs/img/project-quota1.png differ diff --git a/docs/img/project-quota2.png b/docs/img/project-quota2.png index 2d2c5b7fb..90455ea0d 100644 Binary files a/docs/img/project-quota2.png and b/docs/img/project-quota2.png differ diff --git a/docs/img/project-quota3.png b/docs/img/project-quota3.png index d9a6cafd3..dfe2af50c 100644 Binary files a/docs/img/project-quota3.png and b/docs/img/project-quota3.png differ diff --git a/docs/img/project-quota4.png b/docs/img/project-quota4.png index 44abc5c7d..35b160f11 100644 Binary files a/docs/img/project-quota4.png and b/docs/img/project-quota4.png differ diff --git a/docs/img/project-quota5.png b/docs/img/project-quota5.png index 598cc42c2..221e69894 100644 Binary files a/docs/img/project-quota5.png and b/docs/img/project-quota5.png differ diff --git a/docs/working-with-projects/project-configuration/create-robot-accounts.md b/docs/working-with-projects/project-configuration/create-robot-accounts.md index c0b8608cd..373c4b8d5 100644 --- a/docs/working-with-projects/project-configuration/create-robot-accounts.md +++ b/docs/working-with-projects/project-configuration/create-robot-accounts.md @@ -17,6 +17,7 @@ You can create robot accounts to run automated operations. Robot accounts have t 1. Click **New Robot Account**. 1. Enter a name and an optional description for this robot account. +1. Set expiration time for this robot account. If not set, the expiration time of system configuration will be used for this robot account. 1. Grant permission to the robot account to push images and to push and pull Helm charts. Robot accounts can always pull images, so you cannot deselect this option. diff --git a/src/portal/src/app/group/group.component.ts b/src/portal/src/app/group/group.component.ts index 690b30884..e2e864e01 100644 --- a/src/portal/src/app/group/group.component.ts +++ b/src/portal/src/app/group/group.component.ts @@ -110,8 +110,8 @@ export class GroupComponent implements OnInit, OnDestroy { }); // batchInfo.id = group.id; let deletionMessage = new ConfirmationMessage( - "MEMBER.DELETION_TITLE", - "MEMBER.DELETION_SUMMARY", + "GROUP.DELETION_TITLE", + "GROUP.DELETION_SUMMARY", nameArr.join(","), this.selectedGroups, ConfirmationTargets.PROJECT_MEMBER, @@ -185,7 +185,7 @@ export class GroupComponent implements OnInit, OnDestroy { } get canDeleteGroup(): boolean { return ( - this.selectedGroups.length === 1 && + this.selectedGroups.length >= 1 && this.session.currentUser.has_admin_role ); } diff --git a/src/portal/src/app/project/repository/artifact-list-page/artifact-list/artifact-list-tab/artifact-list-tab.component.html b/src/portal/src/app/project/repository/artifact-list-page/artifact-list/artifact-list-tab/artifact-list-tab.component.html index c8b22c096..26570c6a5 100644 --- a/src/portal/src/app/project/repository/artifact-list-page/artifact-list/artifact-list-tab/artifact-list-tab.component.html +++ b/src/portal/src/app/project/repository/artifact-list-page/artifact-list/artifact-list-tab/artifact-list-tab.component.html @@ -161,10 +161,20 @@ - \ No newline at end of file + diff --git a/src/portal/src/app/project/repository/artifact-list-page/artifact-list/artifact-list-tab/artifact-list-tab.component.scss b/src/portal/src/app/project/repository/artifact-list-page/artifact-list/artifact-list-tab/artifact-list-tab.component.scss index ce56be263..e77a659c6 100644 --- a/src/portal/src/app/project/repository/artifact-list-page/artifact-list/artifact-list-tab/artifact-list-tab.component.scss +++ b/src/portal/src/app/project/repository/artifact-list-page/artifact-list/artifact-list-tab/artifact-list-tab.component.scss @@ -418,4 +418,7 @@ clr-datagrid { } .no-border:focus { outline: none; -} \ No newline at end of file +} +.margin-left-5 { + margin-left: 5px; +} diff --git a/src/portal/src/app/project/repository/artifact/artifact-summary.component.html b/src/portal/src/app/project/repository/artifact/artifact-summary.component.html index 1b1f7508f..d76471966 100644 --- a/src/portal/src/app/project/repository/artifact/artifact-summary.component.html +++ b/src/portal/src/app/project/repository/artifact/artifact-summary.component.html @@ -14,8 +14,23 @@
-

{{artifact?.digest | slice:0:15}}

+

+ + + +
+ +
+ + Docker and the Docker logo are trademarks or registered trademarks of Docker, Inc. in the United States and/or other countries. + +
+
+ {{artifact?.digest | slice:0:15}} + +

diff --git a/src/portal/src/app/project/repository/artifact/artifact-summary.component.scss b/src/portal/src/app/project/repository/artifact/artifact-summary.component.scss index 67fbc2857..ac7762d95 100644 --- a/src/portal/src/app/project/repository/artifact/artifact-summary.component.scss +++ b/src/portal/src/app/project/repository/artifact/artifact-summary.component.scss @@ -21,13 +21,10 @@ .center-align-items { display: flex; align-items: center; - clr-icon { - margin-left: 10px; - } - img { - margin-right: 10px; - } } .artifact-icon { width: 25px; -} \ No newline at end of file +} +.margin-left-10px { + margin-left: 10px; +} diff --git a/src/portal/src/app/project/webhook/webhook.component.html b/src/portal/src/app/project/webhook/webhook.component.html index 4f671c2c9..8669ffd00 100644 --- a/src/portal/src/app/project/webhook/webhook.component.html +++ b/src/portal/src/app/project/webhook/webhook.component.html @@ -4,7 +4,7 @@
- @@ -13,7 +13,7 @@