aboutsummaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-06-25 20:21:24 +0200
committerGitHub <noreply@github.com>2019-06-25 20:21:24 +0200
commita488e197a6e3947dd420b40ed834b50db9c829c3 (patch)
tree202e7144d2e1258e9a8452526754f4c8a3ab3220 /libpod
parent21978c99088c04bcc847eb12f829876708c0b9e2 (diff)
parent068d3bb3bfe4fb68fee6ecbef13469e36e4a9a04 (diff)
downloadpodman-a488e197a6e3947dd420b40ed834b50db9c829c3.tar.gz
podman-a488e197a6e3947dd420b40ed834b50db9c829c3.tar.bz2
podman-a488e197a6e3947dd420b40ed834b50db9c829c3.zip
Merge pull request #3417 from mheon/fix_play_kube_ports
Only include ports in one container in Kube YAML
Diffstat (limited to 'libpod')
-rw-r--r--libpod/kube.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/libpod/kube.go b/libpod/kube.go
index c5fd9d75c..283662059 100644
--- a/libpod/kube.go
+++ b/libpod/kube.go
@@ -138,6 +138,11 @@ func (p *Pod) podWithContainers(containers []*Container, ports []v1.ContainerPor
if err != nil {
return nil, err
}
+
+ // Since port bindings for the pod are handled by the
+ // infra container, wipe them here.
+ result.Ports = nil
+
// We add the original port declarations from the libpod infra container
// to the first kubernetes container description because otherwise we loose
// the original container/port bindings.