Commit fb09be45 authored by k8s-merge-robot's avatar k8s-merge-robot Committed by GitHub

Merge pull request #29612 from ping035627/ping035627-patch-0726-1

Automatic merge from submit-queue Combine the const definition The PR combine the const definition in service.go, and it seems more concise, I think.
parents 486a31bb 1606ce57
...@@ -43,22 +43,24 @@ import ( ...@@ -43,22 +43,24 @@ import (
"k8s.io/kubernetes/test/e2e/framework" "k8s.io/kubernetes/test/e2e/framework"
) )
// Maximum time a kube-proxy daemon on a node is allowed to not const (
// notice a Service update, such as type=NodePort. // Maximum time a kube-proxy daemon on a node is allowed to not
// TODO: This timeout should be O(10s), observed values are O(1m), 5m is very // notice a Service update, such as type=NodePort.
// liberal. Fix tracked in #20567. // TODO: This timeout should be O(10s), observed values are O(1m), 5m is very
const kubeProxyLagTimeout = 5 * time.Minute // liberal. Fix tracked in #20567.
kubeProxyLagTimeout = 5 * time.Minute
// Maximum time a load balancer is allowed to not respond after creation.
const loadBalancerLagTimeoutDefault = 2 * time.Minute // Maximum time a load balancer is allowed to not respond after creation.
loadBalancerLagTimeoutDefault = 2 * time.Minute
// On AWS there is a delay between ELB creation and serving traffic;
// a few minutes is typical, so use 10m. // On AWS there is a delay between ELB creation and serving traffic;
const loadBalancerLagTimeoutAWS = 10 * time.Minute // a few minutes is typical, so use 10m.
loadBalancerLagTimeoutAWS = 10 * time.Minute
// How long to wait for a load balancer to be created/modified.
//TODO: once support ticket 21807001 is resolved, reduce this timeout back to something reasonable // How long to wait for a load balancer to be created/modified.
const loadBalancerCreateTimeout = 20 * time.Minute //TODO: once support ticket 21807001 is resolved, reduce this timeout back to something reasonable
loadBalancerCreateTimeout = 20 * time.Minute
)
// This should match whatever the default/configured range is // This should match whatever the default/configured range is
var ServiceNodePortRange = utilnet.PortRange{Base: 30000, Size: 2768} var ServiceNodePortRange = utilnet.PortRange{Base: 30000, Size: 2768}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment