Skip to content

Commit

Permalink
Fix the tests for max-request-inflight
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Hoegen committed Feb 6, 2018
1 parent e86cb87 commit cd6fe31
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions nodeup/pkg/model/kube_apiserver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,38 +31,52 @@ func Test_KubeAPIServer_BuildFlags(t *testing.T) {
}{
{
kops.KubeAPIServerConfig{},
"--insecure-port=0 --secure-port=0",
"--insecure-port=0 --max-request-inflight=0 --secure-port=0",
},
{
kops.KubeAPIServerConfig{
SecurePort: 443,
},
"--insecure-port=0 --secure-port=443",
"--insecure-port=0 --max-request-inflight=0 --secure-port=443",
},
{
kops.KubeAPIServerConfig{
MaxRequestInflight: 1000,
},
"--insecure-port=0 --max-request-inflight=1000 --secure-port=0",
},
{
kops.KubeAPIServerConfig{
InsecurePort: 8080,
SecurePort: 443,
},
"--insecure-port=8080 --secure-port=443",
"--insecure-port=8080 --max-request-inflight=0 --secure-port=443",
},
{
kops.KubeAPIServerConfig{
InsecurePort: 8080,
SecurePort: 443,
MaxRequestInflight: 1000,
},
"--insecure-port=8080 --max-request-inflight=1000 --secure-port=443",
},
{
kops.KubeAPIServerConfig{
InsecurePort: 8080,
},
"--insecure-port=8080 --secure-port=0",
"--insecure-port=8080 --max-request-inflight=0 --secure-port=0",
},
{
kops.KubeAPIServerConfig{
ServiceNodePortRange: "30000-33000",
},
"--insecure-port=0 --secure-port=0 --service-node-port-range=30000-33000",
"--insecure-port=0 --max-request-inflight=0 --secure-port=0 --service-node-port-range=30000-33000",
},
{
kops.KubeAPIServerConfig{
ExperimentalEncryptionProviderConfig: fi.String("/srv/kubernetes/encryptionconfig.yaml"),
},
"--experimental-encryption-provider-config=/srv/kubernetes/encryptionconfig.yaml --insecure-port=0 --secure-port=0",
"--experimental-encryption-provider-config=/srv/kubernetes/encryptionconfig.yaml --insecure-port=0 --max-request-inflight=0 --secure-port=0",
},
}

Expand Down

0 comments on commit cd6fe31

Please sign in to comment.