split genericapiserver configuration apart so that you can run without flag options

This commit is contained in:
deads2k
2016-10-11 14:09:34 -04:00
parent f15c12c32c
commit fbd5032da2
9 changed files with 140 additions and 141 deletions

View File

@@ -38,7 +38,7 @@ import (
const (
// TODO: This can be tightened up. It still matches objects named watch or proxy.
defaultLongRunningRequestRE = "(/|^)((watch|proxy)(/|$)|(logs?|portforward|exec|attach)/?$)"
DefaultLongRunningRequestRE = "(/|^)((watch|proxy)(/|$)|(logs?|portforward|exec|attach)/?$)"
)
var DefaultServiceNodePortRange = utilnet.PortRange{Base: 30000, Size: 2768}
@@ -139,7 +139,7 @@ func NewServerRunOptions() *ServerRunOptions {
EnableWatchCache: true,
InsecureBindAddress: net.ParseIP("127.0.0.1"),
InsecurePort: 8080,
LongRunningRequestRE: defaultLongRunningRequestRE,
LongRunningRequestRE: DefaultLongRunningRequestRE,
MasterCount: 1,
MasterServiceNamespace: api.NamespaceDefault,
MaxRequestsInFlight: 400,