diff options
author | baude <bbaude@redhat.com> | 2018-11-19 13:20:56 -0600 |
---|---|---|
committer | baude <bbaude@redhat.com> | 2018-11-20 09:49:34 -0600 |
commit | 690c52a113124efcedccb84e44198e7602f064ec (patch) | |
tree | 9a11d0ad045ae8f72354a80ede4068f0a9cbbeab /libpod/pod.go | |
parent | 4eecc8cf70728d733aa8d1c948093d9ae4a334df (diff) | |
download | podman-690c52a113124efcedccb84e44198e7602f064ec.tar.gz podman-690c52a113124efcedccb84e44198e7602f064ec.tar.bz2 podman-690c52a113124efcedccb84e44198e7602f064ec.zip |
Allow users to expose ports from the pod to the host
we need to allow users to expose ports to the host for the purposes
of networking, like a webserver. the port exposure must be done at
the time the pod is created.
strictly speaking, the port exposure occurs on the infra container.
Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'libpod/pod.go')
-rw-r--r-- | libpod/pod.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libpod/pod.go b/libpod/pod.go index 8ac976f6a..07f41f5c6 100644 --- a/libpod/pod.go +++ b/libpod/pod.go @@ -4,6 +4,7 @@ import ( "time" "github.com/containers/storage" + "github.com/cri-o/ocicni/pkg/ocicni" "github.com/pkg/errors" ) @@ -96,7 +97,8 @@ type PodContainerInfo struct { // InfraContainerConfig is the configuration for the pod's infra container type InfraContainerConfig struct { - HasInfraContainer bool `json:"makeInfraContainer"` + HasInfraContainer bool `json:"makeInfraContainer"` + PortBindings []ocicni.PortMapping `json:"infraPortBindings"` } // ID retrieves the pod's ID |