-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add more versatile replication filters #8614
Comments
+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. |
as workaround we use this filter |
@HaveFun83 This solution not match versions "X" and "X.X" |
sure "X" and "X.X" is not a semver annotation so far as i know. |
Hey @xaleeks, is there any update you can provide on this? would love to this get slotted for a future version 🙏🏼 |
this topic has also just come up in our company, it would be fabulous if this feature were to be implimented soon. |
We are waiting for this feature, too. |
I have the feeling that this thread receives no attention :-( |
1.11.0 candidate, last version is 2.2.2... |
I would love to see this feature in the next release. It's super annoying without this feature |
This feature would be absolut awesome! |
My company would also love to have regex support in the tag filtering |
ping @qnetter for awareness |
I have applied for this project on LFX website. I have started learning GO, so can I get some pointers on how to get started with this project. |
This issue seems like a great starting point for getting started with a contribution to Harbor. Landed here from the LFX Mentorship projects. I'd like to get started with the issue regardless. Can someone point out the file where the regex is written for the filters for me to take a look? |
I would opt for option 3. |
So will the function |
We should also, make sure that the new feature is backwards-compatible. I see two options.
I would prefer option 1) |
Agreed. This can be done. There are 2 approaches to doing this
I'd prefer option 2 since it'll give us more clarity into regex. |
I've drafted a proposal for this issue formulating multiple approaches to solve the issue, please review and share your thoughts. |
Hi all,
Need
I want replicate images from a namespace. But only need replicate tags "stable" to save my storage
On docker hub :
1.10.0-alpha
1.9.01
1.9.0
1.9.0-rc2
1.9.0-rc1
1.8.0
Need get on my harbor :
1.9.01
1.9.0
1.8.0
So ignore pre release version and alpha version to save storage.
Problem
Try configure my replication rule with existing filters (cf. https://github.com/goharbor/harbor/blob/master/docs/user_guide.md#resource-filter)
*.*.*
=> but1.9.0-rc1
match?.?.?
=> but1.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
Proposal solutions
1 - Add a pattern to match only number, like
\d
with regex2 - 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
The text was updated successfully, but these errors were encountered: