diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2018-11-20 08:53:21 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-20 08:53:21 -0800 |
commit | fe4f09493f41f675d24c969d1b60d1a6a45ddb9e (patch) | |
tree | 723bc55fce645c86c9ecaf8aa1eadde46333af2c /libpod/pod.go | |
parent | 21a76077d36a7d2a79bf4e18b6d3afcb717b102a (diff) | |
parent | 690c52a113124efcedccb84e44198e7602f064ec (diff) | |
download | podman-fe4f09493f41f675d24c969d1b60d1a6a45ddb9e.tar.gz podman-fe4f09493f41f675d24c969d1b60d1a6a45ddb9e.tar.bz2 podman-fe4f09493f41f675d24c969d1b60d1a6a45ddb9e.zip |
Merge pull request #1829 from baude/enableportbindinginpods
Allow users to expose ports from the pod to the host
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 |