harbor icon indicating copy to clipboard operation
harbor copied to clipboard

Replication filter - exclude by name

Open Aransh opened this issue 3 months ago • 2 comments

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.

Aransh avatar Apr 09 '24 09:04 Aransh

One workaround to this issue might be to label the set of artifact you want to exclude with a label name, and utilizing the matching/excluding label feature. Or given them a specific pattern of tag and utilizing the matching/excluding tag feature.

zyyw avatar Apr 14 '24 13:04 zyyw

@zyyw That's problematic for me as I have no control of these artifacts, I just need to replicate them with no modification to the origin repo

Aransh avatar Apr 15 '24 09:04 Aransh