Split proxy and scheduler arguments

Keep options and flags distinct from initialization
This commit is contained in:
Clayton Coleman
2015-12-24 19:27:57 -05:00
parent b1e4831265
commit 715b77cbcd
11 changed files with 215 additions and 146 deletions

View File

@@ -21,6 +21,8 @@ import (
"testing"
"github.com/stretchr/testify/assert"
"k8s.io/kubernetes/cmd/kube-proxy/app/options"
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/util/iptables"
)
@@ -213,7 +215,7 @@ func Test_getProxyMode(t *testing.T) {
func TestProxyServerWithCleanupAndExit(t *testing.T) {
//creates default config
config := NewProxyConfig()
config := options.NewProxyConfig()
//sets CleanupAndExit manually
config.CleanupAndExit = true