pulp / pulp/pulp-cli

Enable users to list content within container-push repository types

Open
#600 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
Python
Stars
43
Forks
52
Avg merge
11h 38m
Merged PRs (30d)
11

Description

The feature request could be relevant only to pulp_container.

In pulp_container, I want to be able to list content available in a push-repository.

This works:

pulp container repository create --name test123321
pulp container repository content list --repository test123321

This does not work:

podman pull ghcr.io/pulp/hello-world
podman tag ghcr.io/pulp/hello-world localhost:24817/pulp/hello-world
podman push localhost:24817/pulp/hello-world --tls-verify=false
pulp container repository --type push content list --repository pulp/hello-world

We might be required to override the behaviour of the repository-content command in order to disable the "content-add" and "content-remove" capabilities along with changing the value passed to the allowed_with_contexts parameter (https://github.com/pulp/pulp-cli/blob/bd521c10adcca1d281cf42c883623e30ecd1b6b3/pulpcore/cli/container/repository.py#L142).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the working and failing commands for pulp_container in the issue, then read pulpcore/cli/container/repository.py around line 142 and the repository-content command behavior. Done means content listing works for a container push repository while the unsupported content-add and content-remove capabilities remain disabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.