Hi all,
I want replicate images from a namespace. But only need replicate tags "stable" to save my storage
On docker hub :
1.10.0-alpha1.9.011.9.01.9.0-rc21.9.0-rc11.8.0Need get on my harbor :
1.9.011.9.01.8.0So ignore pre release version and alpha version to save storage.
Try configure my replication rule with existing filters (cf. https://github.com/goharbor/harbor/blob/master/docs/user_guide.md#resource-filter)
*.*.* => but 1.9.0-rc1 match?.?.? => but 1.9.01 not match{?.?.?,?.??.??} => Ok, but 1.10.0 soon available and so don't matchProblem : It is necessary to update the filter regularly so that my replication rule works in the future
1 - Add a pattern to match only number, like \d with regex
2 - Add more versatile replication filter like composer *, ~, ^, <, =, > (cf. https://getcomposer.org/doc/articles/versions.md#versions-and-constraints)
3 - Simply use regex as pattern to configure filter
+1
we need a common consistent regex support for all features, not just limited to replication. Adding this to next release planning
@xaleeks was wondering if there's any tentative timeline for this work (this is still tagged for 1.11.0)? I totally agree that there need to be a consistent regex support throughout the different features, our immediate use case is with immutability rules.
Most helpful comment
@xaleeks was wondering if there's any tentative timeline for this work (this is still tagged for 1.11.0)? I totally agree that there need to be a consistent regex support throughout the different features, our immediate use case is with immutability rules.