summaryrefslogtreecommitdiff
path: root/libpod/pod.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2020-02-17 16:21:07 -0500
committerMatthew Heon <matthew.heon@pm.me>2020-02-17 16:21:07 -0500
commit666d8cf1deeba4113a9b03e0bc208b1a14122733 (patch)
tree36668d17c27e5a6b967fcfb5180e687cd9c297b8 /libpod/pod.go
parent640b11f0028057ca2090d61c4e460c1afadb226c (diff)
downloadpodman-666d8cf1deeba4113a9b03e0bc208b1a14122733.tar.gz
podman-666d8cf1deeba4113a9b03e0bc208b1a14122733.tar.bz2
podman-666d8cf1deeba4113a9b03e0bc208b1a14122733.zip
Add ability for pods to use the host network
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'libpod/pod.go')
-rw-r--r--libpod/pod.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/libpod/pod.go b/libpod/pod.go
index 4f85caf08..1b4c06c9d 100644
--- a/libpod/pod.go
+++ b/libpod/pod.go
@@ -99,6 +99,7 @@ type PodContainerInfo struct {
// InfraContainerConfig is the configuration for the pod's infra container
type InfraContainerConfig struct {
HasInfraContainer bool `json:"makeInfraContainer"`
+ HostNetwork bool `json:"infraHostNetwork,omitempty"`
PortBindings []ocicni.PortMapping `json:"infraPortBindings"`
StaticIP net.IP `json:"staticIP,omitempty"`
StaticMAC net.HardwareAddr `json:"staticMAC,omitempty"`