harbor/docs/1.10/working_with_projects/create_labels.md

34 lines
1.5 KiB
Markdown
Raw Normal View History

2020-01-13 16:18:01 +01:00
[Back to table of contents](../index.md)
----------
2019-12-13 16:57:46 +01:00
# Managing Labels
2019-11-01 14:58:02 +01:00
2019-12-13 16:57:46 +01:00
Harbor provides two kinds of labels to isolate different kinds of resources:
* **Global Level Label**: Managed by Harbor system administrators and used to manage the images of the whole system. They can be added to images under any projects.
2019-10-17 15:47:25 +02:00
* **Project Level Label**: Managed by project administrators under a project and can only be added to the images of the project.
2019-12-13 16:57:46 +01:00
## Managing Global Labels
The Harbor system administrators can list, create, update and delete the global level labels under `Administration->Configuration->Labels`:
2019-10-17 15:47:25 +02:00
![manage global level labels](../img/manage_global_level_labels.png)
2019-12-13 16:57:46 +01:00
## Managing Project-Level Labels
The project administrators and Harbor system administrators can list, create, update and delete the project level labels under `Labels` tab of the project detail page:
2019-10-17 15:47:25 +02:00
![manage project level labels](../img/manage_project_level_labels.png)
2019-12-13 16:57:46 +01:00
## Adding and Removing Labels to and from Images
Users who have Harbor system administrator, project administrator or project developer role can click the `ADD LABELS` button to add labels to or remove labels from images. The label list contains both globel level labels(come first) and project level labels:
2019-10-17 15:47:25 +02:00
![add labels to images](../img/add_labels_to_images.png)
2019-12-13 16:57:46 +01:00
## Filtering Images by Label
2019-10-17 15:47:25 +02:00
The images can be filtered by labels:
2020-01-13 17:45:05 +01:00
![filter images by labels](../img/filter_images_by_label.png)
----------
[Back to table of contents](../index.md)