From 80f57acc036542cfd19bf19ca596b739be71fd75 Mon Sep 17 00:00:00 2001 From: Ashley Cui Date: Wed, 22 Jul 2020 13:58:54 -0400 Subject: Publish IP from YAML (podman play kube) podman play kube didn't set host ip correctly from YAML Signed-off-by: Ashley Cui --- pkg/domain/infra/abi/play.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'pkg/domain') 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 -- cgit v1.2.3-54-g00ecf