spiegel_podman/pkg/specgen
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
..
generate pkg/specgen: parse default network mode on server 2022-06-14 16:12:10 -04:00
config_unsupported.go go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00
container_validate.go pkg/specgen: parse default network mode on server 2022-06-14 16:12:10 -04:00
namespaces.go pkg/specgen: parse default network mode on server 2022-06-14 16:12:10 -04:00
namespaces_test.go pkg/specgen: parse default network mode on server 2022-06-14 16:12:10 -04:00
pod_validate.go bump go module to version 4 2022-01-18 12:47:07 +01:00
podspecgen.go podman pod create --uidmap patch 2022-06-14 16:12:10 -04:00
specgen.go run, create: add --passwd-entry 2022-04-14 11:22:13 +02:00
specgen_test.go fix test 2021-10-11 17:41:58 +08:00
volumes.go Implements Windows volume/mount support 2022-04-25 13:52:27 -05:00
winpath.go enable gocritic linter 2022-04-26 18:12:22 +02:00
winpath_linux.go Implements Windows volume/mount support 2022-04-25 13:52:27 -05:00
winpath_unsupported.go Implements Windows volume/mount support 2022-04-25 13:52:27 -05:00
winpath_windows.go Implements Windows volume/mount support 2022-04-25 13:52:27 -05:00