spiegel_podman/pkg/api
Christian Stewart b1cc5043fd play: kube: use in-memory kubefile and remove tempfile
The PlayKube and PlayKubeDown commands accepted a "path" argument to a YAML file
to play. This requires the caller to write the YAML to a file path. The downside
of this is apparent in the HTTP handlers which have to use a temporary file on
disk to store the YAML file.

The file is opened & used as the body of the HTTP request. It's possible to
instead pass a io.Reader and use a fully in-memory request body.

Add backwards-compatible changes to bindings to allow passing either a filepath
or a io.Reader body.

Refactor the podman bindings to use a io.Reader instead of a filepath.

Simplify the HTTP handlers for PlayKube by removing the now unneeded tempfile.

[NO NEW TESTS NEEDED]

Signed-off-by: Christian Stewart <christian@paral.in>
2022-03-30 15:36:05 -04:00
..
handlers play: kube: use in-memory kubefile and remove tempfile 2022-03-30 15:36:05 -04:00
server Add 409 response to swagger godoc 2022-02-16 13:55:56 -05:00
types Refacter API server emphasis on logging 2021-09-10 15:07:25 -07:00
Makefile [CI:DOCS] Update swagger definition of inspect manifest 2021-04-07 09:18:23 -07:00
tags.yaml [CI:DOCS] Set all operation id to be compatibile 2021-04-05 19:54:30 -07:00