Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add options for creating pull-through remote and distributions #1034

Open
rfguimaraes opened this issue Aug 5, 2024 · 0 comments
Open

Add options for creating pull-through remote and distributions #1034

rfguimaraes opened this issue Aug 5, 2024 · 0 comments
Labels
feature request New feature request (template-set)

Comments

@rfguimaraes
Copy link

Summary

Currently, the container plugin offers the option of creating pull-through remotes and distributions as tech preview.
However, even at this stage, the feature is very useful and it would be nice to have contexts for it in pulp_glue and options for it in the CLI.
In terms of the CLI, I believe it could work as verbatim publications, by specifying a "type" argument.

Versions

pulpcore: 3.55 (currently installed version, likely applies to 3.56.1 as well)
pulp_container: 2.18.0 (introduced the pull-through feature)

Examples

Current state, from the pulp_container plugin documentation:

# initialize a pull-through remote (the concept of upstream-name is not applicable here)
REMOTE_HREF=$(http ${BASE_ADDR}/pulp/api/v3/remotes/container/pull-through/ name=docker-cache url=https://registry-1.docker.io | jq -r ".pulp_href")

# create a pull-through distribution linked to the initialized remote
http ${BASE_ADDR}/pulp/api/v3/distributions/container/pull-through/ remote=${REMOTE_HREF} name=docker-cache base_path=docker-cache

Idealised state (suggestion):

REMOTE_HREF=$(pulp container remote create --type pull-through --name docker-cache --url https://registry-1.docker.io | jq -r ".pulp_href")

pulp container distribution create --type pull-through --remote-href "$REMOTE_HREF"
@rfguimaraes rfguimaraes added feature request New feature request (template-set) Triage-Needed Needs to be reviewed at next pulp-cli mtg labels Aug 5, 2024
@mdellweg mdellweg removed the Triage-Needed Needs to be reviewed at next pulp-cli mtg label Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature request (template-set)
Projects
None yet
Development

No branches or pull requests

2 participants