Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Add options for creating pull-through remote and distributions

Đang mở
#1,034 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
42/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
api, cli

Hướng nghiên cứu

Start by locating the existing container remote and distribution commands and their pulp_glue contexts, then compare them with the pull-through API examples and the proposed --type usage in the issue. Done means the CLI exposes options for creating pull-through remotes and distributions and supports the documented workflow.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

feature request

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"
Ngôn ngữ chính
Python
Star
43
Fork
52
Merge trung bình
1 ngày 7 giờ
Pull request đã merge (30 ngày)
10

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của pulp/pulp-cli

Tất cả issue của pulp/pulp-cli

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.