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

@@ -56,8 +56,8 @@ func newStorageFactory() genericapiserver.StorageFactory {
}
func NewServerRunOptions() *genericoptions.ServerRunOptions {
serverOptions := genericoptions.NewServerRunOptions().WithEtcdOptions().WithSecureServingOptions()
serverOptions.InsecurePort = InsecurePort
serverOptions := genericoptions.NewServerRunOptions().WithEtcdOptions().WithSecureServingOptions().WithInsecureServingOptions()
serverOptions.InsecureServing.BindPort = InsecurePort
return serverOptions
}