goharbor/harbor

Replication filter - exclude by name

Open

#20,253 opened on Apr 9, 2024

View on GitHub
 (4 comments) (0 reactions) (1 assignee)Go (5,235 forks)batch import
area/replicationduplicatehelp wantedkind/requirement

Repository metrics

Stars
 (28,490 stars)
PR merge metrics
 (Avg merge 8d 17h) (74 merged PRs in 30d)

Description

Is your feature request related to a problem? Please describe. Yes, I am having issues with replicating from Azure ACR source. In the replication logs, I can see that all failing artifacts are of type jar (Resource type appears as image, but the actual resource is a jar) which is of course not supported by Harbor.

Describe the solution you'd like Since all failing artifacts names seem to start with "jar/", I figured I'd add a filter to exclude "jar/**", but appears Harbor doesn't support exclusion by name (while it does support exclusion by label/tag, which I do not have on these artifacts)

Describe the main design/architecture of your solution Same as tag/label implementation, add selector for "includes/excludes" when setting name filter

Additional context Another possible solution is for Harbor to identify these are jars (instead of how it currently identifies them as images) and ignore. I wasn't even aware ACR allows storing Jars, but turns out our dev team uses this feature for Azure databricks, which is not relevant for my Harbor environment.

Contributor guide