As a user I would like to limit the tags we sync for docker repos
We're currently sync'ing some very large openshift repos from brew. In reality we're only interested in the current 3.9 and newerreleases/tags but we're getting everything, which is weighing in at 1.2TB at present and growing with each puddle for each version.
It would be nice to be able to limit the tags we sync.
Provide a config on the DockerImporter config called "tags". This config will accept a list of tags to sync.
Provide a CLI option called "--tags". The user will be able to specify "--tags" when creating a docker repository. The user will also be able to override the "--tags" importer config at sync time, by specifying it as part of the override_configs.
When the "tags" option is provided:
Pulp will sync just those tags + manifests associated with the tags and all the corresponding layers. Sync will only be performed using the immediate download policy. There will be no support for the on_demand download policy.
Note: If the list of tags was changed, and tag X is not wanted anymore, a manual removal of that tag X should occur in the local repo.
Note: If some invalid tags provided are invalid, Pulp will only sync the available ones in the remote repo.
When the "tags" option is not provided:
Pulp will sync the whole repo.
#1 Updated by firstname.lastname@example.org about 3 years ago
This usage would also be useful with foreman as well. I can see two ways:
1. Provide a tag filter up front to limit tags pulled down
2. Just pull the metadata files for the tags and sync the actual images later (exactly like for RPM units)
Personally, I would prefer the second option.
#5 Updated by email@example.com about 3 years ago
an option will be provided where a list of tags to sync can be specified. for example --tags
if option is provided:
we will sync just those tags + its' manifests + correspondent layers. Sync is performed in immediate poilicy, no on_demand.
note if the list of tags was changed, and tag X is not wanted anymore, a manual removal of that tag X should occur in the local repo.
note if some of invalid tags where provided in the list to sync, we will sync just available ones in the remote repo.
if option is not provided:
we will sync by default whole repo.
Please register to edit this issue