skopeo
skopeo copied to clipboard
Add a “filter out” mechanism to skopeo sync
Using the --src myfile.yaml option, users can specify a list of tags to sync for each registry and repo defined in the myfile.yaml file. I think it would also be desirable to be able to provide a list/glob of tags that we do not want to sync. I imagine this working like a blacklist, so skopeo should sync all tags except the ones that match the filter.
@vrothberg @mtrmac is this possible?
For some background you can see my comments at https://bugzilla.redhat.com/show_bug.cgi?id=1811779#c2
Added the additional information.
"It looks like if you use the yaml src format you can specify only the tags you want to sync. I would suggest that there also be a mechanism to filter out specific tags (with a glob would be nice). My main concern is filtering out RH's Source container images. These can be very large (multiple GBs in some instances), and, just like most customers do not download/install src rpms, I don't think they will want or expect these source containers when they sync. "
@vrothberg @mtrmac Is this possible?
It would be possible to write software that does that.
How performant would this be? IE Would this greatly slow down the sync commands in general?
The performance impact is trivially the same as the positive filter — either way we need to list all tags and do filtering locally.
A friendly reminder that this issue had no activity for 30 days.
Mind If I take a look at this?
@danishprakash Sure, that would be helpful.