Closed mueller-ma closed 2 weeks ago
I took a quick look at that, I have some drafted code I'll be happy to share with whoever takes this issue
I've published the WIP code I had here: https://github.com/kubewarden/kwctl/tree/manifest-should-pull-on-missing-policy
I've to leave for vacation, feel free to use it. There's a TODO
block documenting what is missing
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:
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