diff options
author | Ashley Cui <acui@redhat.com> | 2020-07-22 13:58:54 -0400 |
---|---|---|
committer | Ashley Cui <acui@redhat.com> | 2020-07-22 14:05:17 -0400 |
commit | 80f57acc036542cfd19bf19ca596b739be71fd75 (patch) | |
tree | 4a6893ab9f74dcddbc566e2d55cfc91d61f546f9 /pkg/domain/infra/abi | |
parent | 80add2902cf3561d2c9f91dc045076519cd297d5 (diff) | |
download | podman-80f57acc036542cfd19bf19ca596b739be71fd75.tar.gz podman-80f57acc036542cfd19bf19ca596b739be71fd75.tar.bz2 podman-80f57acc036542cfd19bf19ca596b739be71fd75.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/abi')
-rw-r--r-- | pkg/domain/infra/abi/play.go | 4 |
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 |