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

command added to list-packages from package repository #1360

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

rcmadhankumar
Copy link
Contributor

What this PR does / why we need it:

Currently we cannot list the available packages in Package Repository without deploying PackageRepository CR and all Package CRs from Package Repository resources on a cluster. In this PR, list-packages subcommand is added to kctrl's package repository command to list the available packages from a package repository without deploying them on the cluster.

Output:

$kctrl package repository list-packages --url index.docker.io/k8slt/kc-e2e-test-repo:latest              

$ imgpkg pull -b index.docker.io/k8slt/kc-e2e-test-repo:latest -o ./bundle-index.docker.io-k8slt-kc-e2e-test-repo:latest-2648073237 --tty=true

Pulling bundle 'index.docker.io/k8slt/kc-e2e-test-repo@sha256:ddd93b67b97c1460580ca1afd04326d16900dc716c4357cade85b83deab76f1c'
  Extracting layer 'sha256:a18d039a28a58cba06a4aaf435e4479b88daeb3cf7a84e1ca1a5d913f56ad1a8' (1/1)

Locating image lock file images...
One or more images not found in bundle repo; skipping lock file update

Succeeded


Listing Packages from Package Repository 'index.docker.io/k8slt/kc-e2e-test-repo:latest'

Name                 Version  
pkg.test.carvel.dev  1.0.0  
^                    2.0.0  
^                    3.0.0-rc.1  

Succeeded

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?

NONE

Additional Notes for your reviewer:

Review Checklist:
  • Follows the developer guidelines
  • Relevant tests are added or updated
  • Relevant docs in this repo added or updated
  • Relevant carvel.dev docs added or updated in a separate PR and there's
    a link to that PR
  • Code is at least as readable and maintainable as it was before this
    change

Additional documentation e.g., Proposal, usage docs, etc.:


Signed-off-by: rcmadhankumar <rcmadhankumar@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

None yet

1 participant