skopeo icon indicating copy to clipboard operation
skopeo copied to clipboard

Add a “filter out” mechanism to skopeo sync

Open control-d opened this issue 5 years ago • 10 comments

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.

control-d avatar Mar 16 '20 17:03 control-d

@vrothberg @mtrmac is this possible?

rhatdan avatar Oct 08 '20 15:10 rhatdan

For some background you can see my comments at https://bugzilla.redhat.com/show_bug.cgi?id=1811779#c2

control-d avatar Oct 08 '20 15:10 control-d

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?

rhatdan avatar Oct 08 '20 17:10 rhatdan

It would be possible to write software that does that.

mtrmac avatar Oct 08 '20 19:10 mtrmac

How performant would this be? IE Would this greatly slow down the sync commands in general?

rhatdan avatar Oct 09 '20 11:10 rhatdan

The performance impact is trivially the same as the positive filter — either way we need to list all tags and do filtering locally.

mtrmac avatar Oct 09 '20 13:10 mtrmac

A friendly reminder that this issue had no activity for 30 days.

github-actions[bot] avatar Jun 05 '21 00:06 github-actions[bot]

Mind If I take a look at this?

danishprakash avatar Feb 15 '23 05:02 danishprakash

@danishprakash Sure, that would be helpful.

mtrmac avatar Feb 15 '23 17:02 mtrmac