Updates e2e_node test to allow both kubenet and cni to be specified for the network plugin.

This adds a simple CNI configuration which is added to the node during test setup.
This also modifies the default flags in services/kubelet.go to specify the "cni-bin-dir"
and the "cni-conf-dir" and removes the "network-plugin-dir" flag.  This leaves the default
network plugin to kubenet.
This commit is contained in:
Daniel Nardo
2017-04-11 16:23:54 -07:00
parent c3463d737e
commit 4e458ce001
4 changed files with 61 additions and 14 deletions

View File

@@ -254,8 +254,8 @@ func stopKubelet(host, workspace string) error {
// RunTest runs test on the node.
func (c *ConformanceRemote) RunTest(host, workspace, results, junitFilePrefix, testArgs, _ string, timeout time.Duration) (string, error) {
// Install the cni plugin.
if err := installCNI(host, workspace); err != nil {
// Install the cni plugins and add a basic CNI configuration.
if err := setupCNI(host, workspace); err != nil {
return "", err
}