Actions
Story #6922
closedAs a user I can exclude tags
Start date:
Due date:
% Done:
100%
Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
No
Tags:
Sprint:
Sprint 79
Quarter:
Description
For example - on the remote registry i have tags ['latest', 'latest-source', 16.1, 16.0-1, 16.0, 16.0-2, 16.2]
I want to filter out tags that have '-source'. Source containers can be big and this will impact repo size as well as sync time.
We use fnmatch module.
Add an option exclude_tags
. It will also use fnmatch module. Exclude_tags will override include_tags if same tag was mentioned in both places.
Examples:
include_tags = ['latest', '16.0*]
exclude_tags = ['latest', '*-source']
What will be mirrored is: [ 16.0-1, 16.0, 16.0-2]
Related issues
Actions
Replace whitelist_tags with include/exclude_tags
fixes #6922 https://pulp.plan.io/issues/6922 fixes #7070 https://pulp.plan.io/issues/7070