goharbor/harbor

How to exclude untagged Images from being replicated?

开放

#16,616 创建于 2022年3月30日

 (7 条评论) (0 个反应) (2 位负责人)Go (5,235 个派生)batch import
area/replicationhelp wantedkind/questionkind/requirement

仓库指标

星标
 (28,490 个星标)
PR 合并指标
 (平均合并 8天 17小时) (30 天内合并 74 个 PR)

描述

Hey,

I am fiddling around with replication rules right now.

Given this project I want to replicate:

repo1: image1:1-SNAPSHOT,latest image2: untagged image3: untagged

My replication rule looks like this (pull):

Source resource filter Name: project/** Tag: excluding {*-SNAPSHOT,*.*.*-SNAPSHOT,latest}

This exludes the first image from being replicated as I want to. But how do I exclude untagged images in a replication rule?

Thanks for any hints

贡献者指南