diff options
author | Benedikt Ziemons <ben@rs485.network> | 2020-12-23 19:28:32 +0100 |
---|---|---|
committer | Benedikt Ziemons <ben@rs485.network> | 2020-12-23 19:28:32 +0100 |
commit | 14439b986924dd64c465e2f0df12f74e7334298e (patch) | |
tree | b000d58330bb36fcf9d225ce35ba50991ef3f1b4 /pkg/domain/infra | |
parent | 54b82a175f16f27849e6791f65bf73eccae4701a (diff) | |
download | podman-14439b986924dd64c465e2f0df12f74e7334298e.tar.gz podman-14439b986924dd64c465e2f0df12f74e7334298e.tar.bz2 podman-14439b986924dd64c465e2f0df12f74e7334298e.zip |
Set NetNS mode instead of value
when HostNetwork is true in the pod spec.
Also propagate whether host network namespace should be used for containers.
Add test for HostNetwork setting in kubeYaml.
The infra configuration should reflect the setting.
Signed-off-by: Benedikt Ziemons <ben@rs485.network>
Diffstat (limited to 'pkg/domain/infra')
-rw-r--r-- | pkg/domain/infra/abi/play.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/domain/infra/abi/play.go b/pkg/domain/infra/abi/play.go index 5b983a3f4..4135e8882 100644 --- a/pkg/domain/infra/abi/play.go +++ b/pkg/domain/infra/abi/play.go @@ -226,7 +226,7 @@ func (ic *ContainerEngine) playKubePod(ctx context.Context, podName string, podY return nil, err } - specGen, err := kube.ToSpecGen(ctx, container, container.Image, newImage, volumes, pod.ID(), podName, podInfraID, configMaps, seccompPaths, ctrRestartPolicy) + specGen, err := kube.ToSpecGen(ctx, container, container.Image, newImage, volumes, pod.ID(), podName, podInfraID, configMaps, seccompPaths, ctrRestartPolicy, p.NetNS.IsHost()) if err != nil { return nil, err } |