Revert "Revert "[WIP] southbound networking hooks in kubelet""

This commit is contained in:
CJ Cullen
2015-03-19 16:14:13 -07:00
parent 1dd4600eb6
commit 7ddcecfd1c
11 changed files with 606 additions and 0 deletions

View File

@@ -20,6 +20,9 @@ package app
import (
// Credential providers
_ "github.com/GoogleCloudPlatform/kubernetes/pkg/credentialprovider/gcp"
// Network plugins
"github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/network"
"github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/network/exec"
// Volume plugins
"github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/volume"
"github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/volume/empty_dir"
@@ -44,3 +47,13 @@ func ProbeVolumePlugins() []volume.Plugin {
return allPlugins
}
// ProbeNetworkPlugins collects all compiled-in plugins
func ProbeNetworkPlugins() []network.NetworkPlugin {
allPlugins := []network.NetworkPlugin{}
// for each existing plugin, add to the list
allPlugins = append(allPlugins, exec.ProbeNetworkPlugins()...)
return allPlugins
}