split insecure serving options

This commit is contained in:
deads2k
2016-11-09 11:38:46 -05:00
parent a08f3ba521
commit 18074d7606
11 changed files with 142 additions and 99 deletions

View File

@@ -63,8 +63,8 @@ func TestRunSecureServer(t *testing.T) {
stopCh := make(chan struct{})
go func() {
options := apiserver.NewServerRunOptions()
options.InsecurePort = 0
options.SecureServingOptions.ServingOptions.BindPort = apiserver.SecurePort
options.InsecureServing.BindPort = 0
options.SecureServing.ServingOptions.BindPort = apiserver.SecurePort
if err := apiserver.Run(options, stopCh); err != nil {
t.Fatalf("Error in bringing up the server: %v", err)
}