goharbor/harbor

Replication filter - exclude by name/label

Aperta

#20.875 aperta il 23 ago 2024

 (1 commento) (1 reazione) (0 assegnatari)Go (5235 fork)batch import
area/replicationhelp wantedkind/requirement

Metriche repository

Star
 (28.490 stelle)
Metriche merge PR
 (Merge medio 8g 17h) (74 PR mergiate in 30 g)

Descrizione

Is your feature request related to a problem? Please describe.

I want to exclude images in a specific repo from being replicated, while all other images can be replicated as usual. However:

  1. Name doesn't support excluding.
  2. We cannot change Tag as we use its format for other purpose.
  3. Excluding Label doesn't work as expected: it seems I have to push the image first and then add a label to the image. But before I add a label, the image push event already triggers a replication task and starts the replication.

I'm using push-based, event-based replication.

Describe the solution you'd like

  1. Support excluding Name in replication source filter. (ideally)
  2. Or make excluding Label work in push-based, event-based replication. (as suggested in https://github.com/goharbor/harbor/issues/20253#issuecomment-2054062267, which doesn't quite work in my experiment).

Describe the main design/architecture of your solution A clear and concise description of what does your solution look like. Rich text and diagrams are preferred.

Describe the development plan you've considered A clear and concise description of the plan to make the solution ready. It can include a development timeline, resource estimation, and other related things.

Additional context Add any other context or screenshots about the feature request here.

Guida contributor