spiegel_podman/pkg
Christian Stewart 752680366c 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-24 00:57:01 -07:00
..
annotations fix a number of godot issues 2022-03-22 13:04:35 +01:00
api play: kube: use in-memory kubefile and remove tempfile 2022-03-24 00:57:01 -07: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-24 00:57:01 -07:00
channel channel: simplify implementation 2021-05-06 11:51:15 +02:00
checkpoint fix a number of errcheck issues 2022-03-22 13:15:28 +01:00
copy bump go module to version 4 2022-01-18 12:47:07 +01:00
criu go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00
ctime go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00
domain play: kube: use in-memory kubefile and remove tempfile 2022-03-24 00:57:01 -07:00
env linter: enable makezero 2022-03-22 13:04:35 +01:00
errorhandling linter: enable nilerr 2022-03-22 13:04:35 +01:00
hooks bump go module to version 4 2022-01-18 12:47:07 +01:00
inspect fix a number of godot issues 2022-03-22 13:04:35 +01:00
k8s.io linter: enable makezero 2022-03-22 13:04:35 +01:00
kubeutils remove unneeded k8s code 2022-03-15 14:48:08 +01:00
lookup fix a number of godot issues 2022-03-22 13:04:35 +01:00
machine Explicitly use IPv4 to check if podman-machine VM is listening 2022-03-23 12:48:17 -05: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-02 19:33:21 +01:00
rootless fix a number of errcheck issues 2022-03-22 13:15:28 +01:00
rootlessport go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +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 go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00
signal fix a number of godot issues 2022-03-22 13:04:35 +01:00
specgen fix a number of errcheck issues 2022-03-22 13:15:28 +01:00
specgenutil linter: enable wastedassign 2022-03-22 13:04:34 +01:00
systemd fix a number of errcheck issues 2022-03-22 13:15:28 +01:00
terminal fix a number of godot issues 2022-03-22 13:04:35 +01:00
timetype make lint: enable gocritic 2020-01-13 14:27:02 +01:00
trust Cleanup display of trust with transports 2022-02-22 15:08:58 -05:00
util linter: enable nilerr 2022-03-22 13:04:35 +01:00