spiegel_podman/pkg
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
..
annotations Spelling 2020-12-22 13:34:31 -05:00
api play: kube: use in-memory kubefile and remove tempfile 2022-03-30 15:36:05 -04:00
auth Run codespell on code 2022-01-21 09:52:12 -05:00
autoupdate bump go module to version 4 2022-01-18 12:47:07 +01:00
bindings play: kube: use in-memory kubefile and remove tempfile 2022-03-30 15:36:05 -04:00
channel channel: simplify implementation 2021-05-06 11:51:15 +02:00
checkpoint Fix checkpoint/restore pod tests 2022-02-16 13:58:40 -05:00
copy bump go module to version 4 2022-01-18 12:47:07 +01:00
criu Error out early if system does not support pre-copy checkpointing 2021-12-23 09:51:38 +00:00
ctime Re-add int64 casts for ctime 2019-07-23 15:43:40 -04:00
domain play: kube: use in-memory kubefile and remove tempfile 2022-03-30 15:36:05 -04:00
env Implement env parsing on Windows 2022-01-19 12:05:04 -06:00
errorhandling Handle HTTP 409 error messages properly for Pod actions 2021-11-02 12:28:52 +01:00
hooks bump go module to version 4 2022-01-18 12:47:07 +01:00
inspect bump go module to version 4 2022-01-18 12:47:07 +01:00
kubeutils bump go module to version 4 2022-01-18 12:47:07 +01:00
lookup Enable whitespace linter 2021-02-11 23:01:56 +01:00
machine Explicitly use IPv4 to check if podman-machine VM is listening 2022-03-30 15:36:05 -04:00
namespaces [NO TESTS NEEDED] Shrink the size of podman-remote 2021-03-29 09:49:45 -04:00
parallel bump go module to version 4 2022-01-18 12:47:07 +01:00
ps bump go module to version 4 2022-01-18 12:47:07 +01:00
resolvconf Revert "Move each search dns to its own line" 2022-02-03 16:21:26 -05:00
rootless rootless: report correctly the error 2022-01-19 21:14:33 +01:00
rootlessport use libnetwork from c/common 2022-01-12 17:07:30 +01:00
seccomp Spelling 2020-12-22 13:34:31 -05:00
selinux Fix SELinux functions names to not be repetitive 2020-04-23 15:57:34 -04:00
servicereaper standardize logrus messages to upper case 2021-09-22 15:29:34 -04:00
signal Fixes TTY & resizing on Mac and Windows 2022-03-30 13:59:27 -04:00
specgen podman create: building local pause image: do not read ignore files 2022-03-30 14:09:17 -04:00
specgenutil Fix size to match Docker selection 2022-02-03 14:54:29 -05:00
systemd Separator is no longer prepended when prefix is empty on podman generate systemd 2022-03-30 14:05:49 -04:00
terminal Fix #11444: remote breaks with stdout redirection 2021-09-13 17:42:48 +03:00
timetype make lint: enable gocritic 2020-01-13 14:27:02 +01:00
trust standardize logrus messages to upper case 2021-09-22 15:29:34 -04:00
util Revert "use GetRuntimeDir() from c/common" 2022-03-01 13:24:39 -06:00