Project

Profile

Help

Story #6922

closed

As a user I can exclude tags

Added by ipanova@redhat.com almost 4 years ago. Updated over 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Sprint/Milestone:
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

Related to Docker Support - Story #6933: As a user I can opt out of mirorring source containers.CLOSED - WONTFIX

Actions
Actions #1

Updated by ipanova@redhat.com almost 4 years ago

  • Project changed from Pulp to Container Support
Actions #2

Updated by ipanova@redhat.com almost 4 years ago

  • Description updated (diff)
Actions #3

Updated by ipanova@redhat.com almost 4 years ago

  • Related to Story #6933: As a user I can opt out of mirorring source containers. added
Actions #4

Updated by ipanova@redhat.com over 3 years ago

As per irc discussion with x9c4 we can add a second option 'excludes' that will also support regexp to avoid complications with negation search pattern.

Actions #5

Updated by ipanova@redhat.com over 3 years ago

  • Description updated (diff)
  • Status changed from NEW to ASSIGNED
  • Assignee set to mdellweg
  • Groomed changed from No to Yes
  • Sprint set to Sprint 78
Actions #6

Updated by ipanova@redhat.com over 3 years ago

  • Sprint/Milestone set to 2.0.0
Actions #7

Updated by ipanova@redhat.com over 3 years ago

  • Description updated (diff)
Actions #8

Updated by ipanova@redhat.com over 3 years ago

  • Subject changed from As a user I can opt out of mirorring source containers. to As a user I can exclude tags
Actions #9

Updated by ipanova@redhat.com over 3 years ago

  • Description updated (diff)
Actions #10

Updated by rchan over 3 years ago

  • Sprint changed from Sprint 78 to Sprint 79
Actions #11

Updated by pulpbot over 3 years ago

  • Status changed from ASSIGNED to POST

Added by mdellweg over 3 years ago

Revision ad7ab345 | View on GitHub

Replace whitelist_tags with include/exclude_tags

fixes #6922 https://pulp.plan.io/issues/6922 fixes #7070 https://pulp.plan.io/issues/7070

Added by mdellweg over 3 years ago

Revision ad7ab345 | View on GitHub

Replace whitelist_tags with include/exclude_tags

fixes #6922 https://pulp.plan.io/issues/6922 fixes #7070 https://pulp.plan.io/issues/7070

Actions #12

Updated by mdellweg over 3 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #13

Updated by pulpbot over 3 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF