podman-api-rs
podman-api-rs copied to clipboard
remove_kubernetes_pods does not accept a yaml specifying the resources to delete
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.
- Crate version: 0.10.0
- OS:
- Output of running
podman version
on the command line:
Client: Podman Engine
Version: 4.5.0
API Version: 4.5.0
Go Version: go1.20.4
Git Commit: 75e3c12579d391b81d871fd1cded6cf0d043550a-dirty
Built: Sun May 14 22:11:42 2023
OS/Arch: linux/amd64