vv9k / podman-api-rs

Rust interface to Podman (libpod).
MIT License
84 stars 12 forks source link

remove_kubernetes_pods does not accept a yaml specifying the resources to delete #168

Open krucod3 opened 1 year ago

krucod3 commented 1 year ago

Podman play kube requires a yaml file specifying the resources to create (or delete when called with --down).

The delete method supported by podman-api remove_kubernetes_pods does not accept a yaml specifying what to delete. This is probably caused by the misleading documentation of the Podman REST API: https://github.com/containers/podman/issues/19945

Additionally the remove_kubernetes_pods name is misleading (also in the Podman documentation) as it removes also other resources and not only pods. remove_kubernetes_yaml would probably fit better.