kubewarden / kwctl

Go-to CLI tool for Kubewarden users
https://kubewarden.io
Apache License 2.0
73 stars 15 forks source link

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

Open viccuad opened 1 year ago

viccuad commented 1 year ago

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 commented 1 year ago

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