summaryrefslogtreecommitdiff
path: root/pkg/domain/infra
diff options
context:
space:
mode:
authorAshley Cui <acui@redhat.com>2020-07-22 13:58:54 -0400
committerAshley Cui <acui@redhat.com>2020-08-04 16:52:32 -0400
commit3b22faa24b9ba73f77b3257c4fea1315b5cff0d2 (patch)
treeec853cabe9c5c53b205b8e10ca875fc724a0f821 /pkg/domain/infra
parentabd5ebdde3c24a5c1f173a191b01140b5e7c8a71 (diff)
downloadpodman-3b22faa24b9ba73f77b3257c4fea1315b5cff0d2.tar.gz
podman-3b22faa24b9ba73f77b3257c4fea1315b5cff0d2.tar.bz2
podman-3b22faa24b9ba73f77b3257c4fea1315b5cff0d2.zip
Publish IP from YAML (podman play kube)
podman play kube didn't set host ip correctly from YAML Signed-off-by: Ashley Cui <acui@redhat.com>
Diffstat (limited to 'pkg/domain/infra')
-rw-r--r--pkg/domain/infra/abi/play.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/pkg/domain/infra/abi/play.go b/pkg/domain/infra/abi/play.go
index 888811958..52a62a25d 100644
--- a/pkg/domain/infra/abi/play.go
+++ b/pkg/domain/infra/abi/play.go
@@ -340,9 +340,7 @@ func getPodPorts(containers []v1.Container) []ocicni.PortMapping {
HostPort: p.HostPort,
ContainerPort: p.ContainerPort,
Protocol: strings.ToLower(string(p.Protocol)),
- }
- if p.HostIP != "" {
- logrus.Debug("HostIP on port bindings is not supported")
+ HostIP: p.HostIP,
}
// only hostPort is utilized in podman context, all container ports
// are accessible inside the shared network namespace