kwctl icon indicating copy to clipboard operation
kwctl copied to clipboard

Feature Request: Pull policy if not in local store

Open mueller-ma opened this issue 7 months ago • 1 comments

Is your feature request related to a problem?

The creation of Kubernetes manifests currently requires two commands:

  • kwctl pull ghcr.io/kubewarden/policies/container-resources:v0.2.4
  • kwctl scaffold manifest -t ClusterAdmissionPolicy registry://ghcr.io/kubewarden/policies/container-resources:v0.2.4

Omitting the first command results in an error:

Error: Cannot find policy 'registry://ghcr.io/kubewarden/policies/container-resources:v0.2.4' inside of the local store.
Try executing `kwctl pull registry://ghcr.io/kubewarden/policies/container-resources:v0.2.4`

Solution you'd like

If the policy is not in the local store, pull it automatically. The docker cli also does this and you say in the Readme: "Think of it as the docker CLI tool if you were working with containers."

Alternatives you've considered

No response

Anything else?

No response

mueller-ma avatar Jun 28 '24 13:06 mueller-ma