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

Some kwctl subcommands need registry:// while others don't #537

Open
viccuad opened this issue Jul 14, 2023 · 1 comment
Open

Some kwctl subcommands need registry:// while others don't #537

viccuad opened this issue Jul 14, 2023 · 1 comment

Comments

@viccuad
Copy link
Member

viccuad commented Jul 14, 2023

Installing policies from artifacthub.io I realized the following:

$ kwctl pull ghcr.io/kubewarden/policies/safe-labels:v0.1.13 # as printed in artifacthub's install button, note no registry://
$ $ kwctl scaffold manifest -t ClusterAdmissionPolicy ghcr.io/kubewarden/policies/safe-labels:v0.1.13
Error: relative URL without a base

This is true for other subcommands too:

$ kwctl rm ghcr.io/kubewarden/policies/safe-labels:v0.1.13
Error: relative URL without a base
$ kwctl rm registry://ghcr.io/kubewarden/policies/safe-labels:v0.1.13
@flavio
Copy link
Member

flavio commented Jul 17, 2023

We should go through all the commands we have and understand which one can be changed to assume the usage of the registry:// protocol when no protocol is being used.

For example, the pull command can be changed, while the rm one is a bit trickier

viccuad pushed a commit to viccuad/kwctl that referenced this issue Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants