aboutsummaryrefslogtreecommitdiff
path: root/libpod/runtime.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-01-04 16:55:08 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-01-08 20:48:31 +0000
commit5c5c024e80a9c78e94f8d3d7d13755b27dd9a8bf (patch)
treef4755d0bbc2a5f65ef32021a5ad47b12a994edf8 /libpod/runtime.go
parentc246b9d24f27c9ef020a044eee95ffc440145146 (diff)
downloadpodman-5c5c024e80a9c78e94f8d3d7d13755b27dd9a8bf.tar.gz
podman-5c5c024e80a9c78e94f8d3d7d13755b27dd9a8bf.tar.bz2
podman-5c5c024e80a9c78e94f8d3d7d13755b27dd9a8bf.zip
Remove Kubernetes hostport support
This can now be handled by CNI plugins, so let them manage ports instead. Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #189 Approved by: mheon
Diffstat (limited to 'libpod/runtime.go')
-rw-r--r--libpod/runtime.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/libpod/runtime.go b/libpod/runtime.go
index cb1e8f531..2a659a1e3 100644
--- a/libpod/runtime.go
+++ b/libpod/runtime.go
@@ -12,7 +12,6 @@ import (
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
"github.com/ulule/deepcopier"
- "k8s.io/kubernetes/pkg/kubelet/network/hostport"
)
// A RuntimeOption is a functional option which alters the Runtime created by
@@ -29,7 +28,6 @@ type Runtime struct {
ociRuntime *OCIRuntime
lockDir string
netPlugin ocicni.CNIPlugin
- hostportManager hostport.HostPortManager
valid bool
lock sync.RWMutex
}
@@ -181,9 +179,6 @@ func NewRuntime(options ...RuntimeOption) (runtime *Runtime, err error) {
}
runtime.netPlugin = netPlugin
- // Set up the hostport manager
- runtime.hostportManager = hostport.NewHostportManager()
-
// Set up the state
if runtime.config.InMemoryState {
state, err := NewInMemoryState()