spiegel_podman/pkg
Paul Holzinger 6f6b64049f pkg/specgen: parse default network mode on server
When podman-remote is used we should not resolve the default network
mode on the client. Defaults should be set on the server. In this case
this is important because we have different defaults for root/rootless.
So when the client is rootless and the server is root we must pick the
root default.

Note that this already worked when --network was set since we did not
parsed the flag in this case. To reproduce you need --network=default.

Also removed a unused function.

[NO NEW TESTS NEEDED] I tested it manually but I am not sure how I can
hook a test like this up in CI. The client would need to run as rootless
and the server as root or the other way around.

Fixes #14368

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2022-06-14 16:12:10 -04:00
..
annotations fix a number of godot issues 2022-03-22 13:04:35 +01:00
api compat, build: suppress step errors when quiet is set 2022-06-14 14:19:44 -04:00
auth Run codespell on code 2022-01-21 09:52:12 -05:00
autoupdate auto update: create an event 2022-06-14 13:50:03 -04:00
bindings Swagger refactor/cleanup 2022-06-14 13:48:20 -04:00
channel channel: simplify implementation 2021-05-06 11:51:15 +02:00
checkpoint Add support for checkpoint image 2022-04-20 18:55:39 +01:00
copy bump go module to version 4 2022-01-18 12:47:07 +01:00
criu Add support for checkpoint image 2022-04-20 18:55:39 +01:00
ctime go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00
domain fix bad import path for cmd/podman/utils 2022-06-14 16:12:10 -04:00
env Add more unit tests 2022-05-05 15:48:26 -04:00
errorhandling Swagger refactor/cleanup 2022-06-14 13:48:20 -04:00
hooks enable gocritic linter 2022-04-26 18:12:22 +02:00
inspect fix a number of godot issues 2022-03-22 13:04:35 +01:00
k8s.io linter: enable unconvert linter 2022-06-14 13:47:42 -04:00
kubeutils remove unneeded k8s code 2022-03-15 14:48:08 +01:00
lookup enable gocritic linter 2022-04-26 18:12:22 +02:00
machine Removed imageStream hardcoded value 2022-06-14 14:40:37 -04:00
namespaces enable gocritic linter 2022-04-26 18:12:22 +02: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 remote: do not join user NS 2022-04-26 15:05:20 +02: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 Unit tests for pkg/specgenutil pkg/signal 2022-04-25 14:48:39 -05:00
specgen pkg/specgen: parse default network mode on server 2022-06-14 16:12:10 -04:00
specgenutil Podman no-new-privileges format 2022-06-14 14:35:36 -04:00
systemd enable gocritic linter 2022-04-26 18:12:22 +02:00
terminal move golang.org/x/crypto/ssh/terminal to golang.org/x/term 2022-04-22 12:40:52 +02:00
timetype enable gocritic linter 2022-04-26 18:12:22 +02:00
trust Cleanup display of trust with transports 2022-02-22 15:08:58 -05:00
util Use containers/common/pkg/util.StringToSlice 2022-06-14 14:25:33 -04:00