Skip to content

Commit 34aa283

Browse files
authored
Merge pull request kubernetes#77643 from atoato88/fix-golint-e2e-framework-asterisk
Fix golint failures of e2e/framework/*.go
2 parents 23e54dc + dddc6a5 commit 34aa283

File tree

4 files changed

+48
-5
lines changed

4 files changed

+48
-5
lines changed

hack/.golint_failures

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,6 @@ test/e2e
594594
test/e2e/autoscaling
595595
test/e2e/chaosmonkey
596596
test/e2e/common
597-
test/e2e/framework
598597
test/e2e/lifecycle/bootstrap
599598
test/e2e/scalability
600599
test/e2e/storage/drivers

test/e2e/framework/networking_utils.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ const (
6565
maxNetProxyPodsCount = 10
6666
// SessionAffinityChecks is number of checks to hit a given set of endpoints when enable session affinity.
6767
SessionAffinityChecks = 10
68-
// Regex to match IPv4 addresses
68+
// RegexIPv4 is a regex to match IPv4 addresses
6969
RegexIPv4 = "(?:\\d+)\\.(?:\\d+)\\.(?:\\d+)\\.(?:\\d+)"
70-
// Regex to match IPv6 addresses
70+
// RegexIPv6 is a regex to match IPv6 addresses
7171
RegexIPv6 = "(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::))))"
7272
)
7373

test/e2e/framework/service_util.go

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,16 @@ const (
7676
// Bring the cleanup timeout back down to 5m once b/33588344 is resolved.
7777
LoadBalancerCleanupTimeout = 15 * time.Minute
7878

79+
// LoadBalancerPollTimeout is the time required by the loadbalancer to poll.
7980
// On average it takes ~6 minutes for a single backend to come online in GCE.
80-
LoadBalancerPollTimeout = 15 * time.Minute
81+
LoadBalancerPollTimeout = 15 * time.Minute
82+
// LoadBalancerPollInterval is the interval value in which the loadbalancer polls.
8183
LoadBalancerPollInterval = 30 * time.Second
8284

85+
// LargeClusterMinNodesNumber is the number of nodes which a large cluster consists of.
8386
LargeClusterMinNodesNumber = 100
8487

88+
// MaxNodesForEndpointsTests is the max number for testing endpoints.
8589
// Don't test with more than 3 nodes.
8690
// Many tests create an endpoint per node, in large clusters, this is
8791
// resource and time intensive.
@@ -236,6 +240,7 @@ func (j *ServiceTestJig) CreateServiceWithServicePort(labels map[string]string,
236240
return j.Client.CoreV1().Services(namespace).Create(service)
237241
}
238242

243+
// ChangeServiceType updates the given service's ServiceType to the given newType.
239244
func (j *ServiceTestJig) ChangeServiceType(namespace, name string, newType v1.ServiceType, timeout time.Duration) {
240245
ingressIP := ""
241246
svc := j.UpdateServiceOrFail(namespace, name, func(s *v1.Service) {
@@ -318,6 +323,7 @@ func (j *ServiceTestJig) CreateLoadBalancerService(namespace, serviceName string
318323
return svc
319324
}
320325

326+
// GetNodeAddresses returns a list of addresses of the given addressType for the given node
321327
func GetNodeAddresses(node *v1.Node, addressType v1.NodeAddressType) (ips []string) {
322328
for j := range node.Status.Addresses {
323329
nodeAddress := &node.Status.Addresses[j]
@@ -328,6 +334,7 @@ func GetNodeAddresses(node *v1.Node, addressType v1.NodeAddressType) (ips []stri
328334
return
329335
}
330336

337+
// CollectAddresses returns a list of addresses of the given addressType for the given list of nodes
331338
func CollectAddresses(nodes *v1.NodeList, addressType v1.NodeAddressType) []string {
332339
ips := []string{}
333340
for i := range nodes.Items {
@@ -336,6 +343,7 @@ func CollectAddresses(nodes *v1.NodeList, addressType v1.NodeAddressType) []stri
336343
return ips
337344
}
338345

346+
// GetNodePublicIps returns a public IP list of nodes.
339347
func GetNodePublicIps(c clientset.Interface) ([]string, error) {
340348
nodes := GetReadySchedulableNodesOrDie(c)
341349

@@ -347,6 +355,7 @@ func GetNodePublicIps(c clientset.Interface) ([]string, error) {
347355
return ips, nil
348356
}
349357

358+
// PickNodeIP picks one public node IP
350359
func PickNodeIP(c clientset.Interface) string {
351360
publicIps, err := GetNodePublicIps(c)
352361
ExpectNoError(err)
@@ -415,6 +424,7 @@ func (j *ServiceTestJig) GetNodes(maxNodesForTest int) (nodes *v1.NodeList) {
415424
return nodes
416425
}
417426

427+
// GetNodesNames returns a list of names of the first maxNodesForTest nodes
418428
func (j *ServiceTestJig) GetNodesNames(maxNodesForTest int) []string {
419429
nodes := j.GetNodes(maxNodesForTest)
420430
nodesNames := []string{}
@@ -424,6 +434,7 @@ func (j *ServiceTestJig) GetNodesNames(maxNodesForTest int) []string {
424434
return nodesNames
425435
}
426436

437+
// WaitForEndpointOnNode waits for a service endpoint on the given node.
427438
func (j *ServiceTestJig) WaitForEndpointOnNode(namespace, serviceName, nodeName string) {
428439
err := wait.PollImmediate(Poll, LoadBalancerCreateTimeoutDefault, func() (bool, error) {
429440
endpoints, err := j.Client.CoreV1().Endpoints(namespace).Get(serviceName, metav1.GetOptions{})
@@ -451,6 +462,7 @@ func (j *ServiceTestJig) WaitForEndpointOnNode(namespace, serviceName, nodeName
451462
ExpectNoError(err)
452463
}
453464

465+
// SanityCheckService performs sanity checks on the given service
454466
func (j *ServiceTestJig) SanityCheckService(svc *v1.Service, svcType v1.ServiceType) {
455467
if svc.Spec.Type != svcType {
456468
Failf("unexpected Spec.Type (%s) for service, expected %s", svc.Spec.Type, svcType)
@@ -533,6 +545,7 @@ func (j *ServiceTestJig) UpdateServiceOrFail(namespace, name string, update func
533545
return svc
534546
}
535547

548+
// WaitForNewIngressIPOrFail waits for the given service to get a new ingress IP, or fails after the given timeout
536549
func (j *ServiceTestJig) WaitForNewIngressIPOrFail(namespace, name, existingIP string, timeout time.Duration) *v1.Service {
537550
Logf("Waiting up to %v for service %q to get a new ingress IP", timeout, name)
538551
service := j.waitForConditionOrFail(namespace, name, timeout, "have a new ingress IP", func(svc *v1.Service) bool {
@@ -548,6 +561,7 @@ func (j *ServiceTestJig) WaitForNewIngressIPOrFail(namespace, name, existingIP s
548561
return service
549562
}
550563

564+
// ChangeServiceNodePortOrFail changes node ports of the given service.
551565
func (j *ServiceTestJig) ChangeServiceNodePortOrFail(namespace, name string, initial int) *v1.Service {
552566
var err error
553567
var service *v1.Service
@@ -571,6 +585,7 @@ func (j *ServiceTestJig) ChangeServiceNodePortOrFail(namespace, name string, ini
571585
return service
572586
}
573587

588+
// WaitForLoadBalancerOrFail waits the given service to have a LoadBalancer, or fails after the given timeout
574589
func (j *ServiceTestJig) WaitForLoadBalancerOrFail(namespace, name string, timeout time.Duration) *v1.Service {
575590
Logf("Waiting up to %v for service %q to have a LoadBalancer", timeout, name)
576591
service := j.waitForConditionOrFail(namespace, name, timeout, "have a load balancer", func(svc *v1.Service) bool {
@@ -579,6 +594,7 @@ func (j *ServiceTestJig) WaitForLoadBalancerOrFail(namespace, name string, timeo
579594
return service
580595
}
581596

597+
// WaitForLoadBalancerDestroyOrFail waits the given service to destroy a LoadBalancer, or fails after the given timeout
582598
func (j *ServiceTestJig) WaitForLoadBalancerDestroyOrFail(namespace, name string, ip string, port int, timeout time.Duration) *v1.Service {
583599
// TODO: once support ticket 21807001 is resolved, reduce this timeout back to something reasonable
584600
defer func() {
@@ -658,6 +674,7 @@ func (j *ServiceTestJig) newRCTemplate(namespace string) *v1.ReplicationControll
658674
return rc
659675
}
660676

677+
// AddRCAntiAffinity adds AntiAffinity to the given ReplicationController.
661678
func (j *ServiceTestJig) AddRCAntiAffinity(rc *v1.ReplicationController) {
662679
var replicas int32 = 2
663680

@@ -677,6 +694,7 @@ func (j *ServiceTestJig) AddRCAntiAffinity(rc *v1.ReplicationController) {
677694
})
678695
}
679696

697+
// CreatePDBOrFail returns a PodDisruptionBudget for the given ReplicationController, or fails if a PodDisruptionBudget isn't ready
680698
func (j *ServiceTestJig) CreatePDBOrFail(namespace string, rc *v1.ReplicationController) *policyv1beta1.PodDisruptionBudget {
681699
pdb := j.newPDBTemplate(namespace, rc)
682700
newPdb, err := j.Client.PolicyV1beta1().PodDisruptionBudgets(namespace).Create(pdb)
@@ -733,6 +751,7 @@ func (j *ServiceTestJig) RunOrFail(namespace string, tweak func(rc *v1.Replicati
733751
return result
734752
}
735753

754+
// Scale scales pods to the given replicas
736755
func (j *ServiceTestJig) Scale(namespace string, replicas int) {
737756
rc := j.Name
738757
scale, err := j.Client.CoreV1().ReplicationControllers(namespace).GetScale(rc, metav1.GetOptions{})
@@ -839,6 +858,7 @@ func newNetexecPodSpec(podName string, httpPort, udpPort int32, hostNetwork bool
839858
return pod
840859
}
841860

861+
// LaunchNetexecPodOnNode launches a netexec pod on the given node.
842862
func (j *ServiceTestJig) LaunchNetexecPodOnNode(f *Framework, nodeName, podName string, httpPort, udpPort int32, hostNetwork bool) {
843863
Logf("Creating netexec pod %q on node %v in namespace %q", podName, nodeName, f.Namespace.Name)
844864
pod := newNetexecPodSpec(podName, httpPort, udpPort, hostNetwork)
@@ -887,10 +907,12 @@ func (j *ServiceTestJig) LaunchEchoserverPodOnNode(f *Framework, nodeName, podNa
887907
Logf("Echo server pod %q in namespace %q running", pod.Name, f.Namespace.Name)
888908
}
889909

910+
// TestReachableHTTP tests that the given host serves HTTP on the given port.
890911
func (j *ServiceTestJig) TestReachableHTTP(host string, port int, timeout time.Duration) {
891912
j.TestReachableHTTPWithRetriableErrorCodes(host, port, []int{}, timeout)
892913
}
893914

915+
// TestReachableHTTPWithRetriableErrorCodes tests that the given host serves HTTP on the given port with the given retriableErrCodes.
894916
func (j *ServiceTestJig) TestReachableHTTPWithRetriableErrorCodes(host string, port int, retriableErrCodes []int, timeout time.Duration) {
895917
pollfn := func() (bool, error) {
896918
result := PokeHTTP(host, port, "/echo?msg=hello",
@@ -913,6 +935,7 @@ func (j *ServiceTestJig) TestReachableHTTPWithRetriableErrorCodes(host string, p
913935
}
914936
}
915937

938+
// TestNotReachableHTTP tests that a HTTP request doesn't connect to the given host and port.
916939
func (j *ServiceTestJig) TestNotReachableHTTP(host string, port int, timeout time.Duration) {
917940
pollfn := func() (bool, error) {
918941
result := PokeHTTP(host, port, "/", nil)
@@ -927,6 +950,7 @@ func (j *ServiceTestJig) TestNotReachableHTTP(host string, port int, timeout tim
927950
}
928951
}
929952

953+
// TestRejectedHTTP tests that the given host rejects a HTTP request on the given port.
930954
func (j *ServiceTestJig) TestRejectedHTTP(host string, port int, timeout time.Duration) {
931955
pollfn := func() (bool, error) {
932956
result := PokeHTTP(host, port, "/", nil)
@@ -941,6 +965,7 @@ func (j *ServiceTestJig) TestRejectedHTTP(host string, port int, timeout time.Du
941965
}
942966
}
943967

968+
// TestReachableUDP tests that the given host serves UDP on the given port.
944969
func (j *ServiceTestJig) TestReachableUDP(host string, port int, timeout time.Duration) {
945970
pollfn := func() (bool, error) {
946971
result := PokeUDP(host, port, "echo hello", &UDPPokeParams{
@@ -958,6 +983,7 @@ func (j *ServiceTestJig) TestReachableUDP(host string, port int, timeout time.Du
958983
}
959984
}
960985

986+
// TestNotReachableUDP tests that the given host doesn't serve UDP on the given port.
961987
func (j *ServiceTestJig) TestNotReachableUDP(host string, port int, timeout time.Duration) {
962988
pollfn := func() (bool, error) {
963989
result := PokeUDP(host, port, "echo hello", &UDPPokeParams{Timeout: 3 * time.Second})
@@ -971,6 +997,7 @@ func (j *ServiceTestJig) TestNotReachableUDP(host string, port int, timeout time
971997
}
972998
}
973999

1000+
// TestRejectedUDP tests that the given host rejects a UDP request on the given port.
9741001
func (j *ServiceTestJig) TestRejectedUDP(host string, port int, timeout time.Duration) {
9751002
pollfn := func() (bool, error) {
9761003
result := PokeUDP(host, port, "echo hello", &UDPPokeParams{Timeout: 3 * time.Second})
@@ -984,6 +1011,7 @@ func (j *ServiceTestJig) TestRejectedUDP(host string, port int, timeout time.Dur
9841011
}
9851012
}
9861013

1014+
// GetHTTPContent returns the content of the given url by HTTP.
9871015
func (j *ServiceTestJig) GetHTTPContent(host string, port int, timeout time.Duration, url string) bytes.Buffer {
9881016
var body bytes.Buffer
9891017
if pollErr := wait.PollImmediate(Poll, timeout, func() (bool, error) {
@@ -1028,6 +1056,7 @@ func testHTTPHealthCheckNodePort(ip string, port int, request string) (bool, err
10281056
return false, fmt.Errorf("unexpected HTTP response code %s from health check responder at %s", resp.Status, url)
10291057
}
10301058

1059+
// TestHTTPHealthCheckNodePort tests a HTTP connection by the given request to the given host and port.
10311060
func (j *ServiceTestJig) TestHTTPHealthCheckNodePort(host string, port int, request string, timeout time.Duration, expectSucceed bool, threshold int) error {
10321061
count := 0
10331062
condition := func() (bool, error) {
@@ -1063,6 +1092,7 @@ type ServiceTestFixture struct {
10631092
Image string
10641093
}
10651094

1095+
// NewServerTest creates a new ServiceTestFixture for the tests.
10661096
func NewServerTest(client clientset.Interface, namespace string, serviceName string) *ServiceTestFixture {
10671097
t := &ServiceTestFixture{}
10681098
t.Client = client
@@ -1127,6 +1157,7 @@ func (t *ServiceTestFixture) DeleteService(serviceName string) error {
11271157
return err
11281158
}
11291159

1160+
// Cleanup cleans all ReplicationControllers and Services which this object holds.
11301161
func (t *ServiceTestFixture) Cleanup() []error {
11311162
var errs []error
11321163
for rcName := range t.rcs {
@@ -1175,6 +1206,7 @@ func (t *ServiceTestFixture) Cleanup() []error {
11751206
return errs
11761207
}
11771208

1209+
// GetIngressPoint returns a host on which ingress serves.
11781210
func GetIngressPoint(ing *v1.LoadBalancerIngress) string {
11791211
host := ing.IP
11801212
if host == "" {
@@ -1206,6 +1238,7 @@ func UpdateService(c clientset.Interface, namespace, serviceName string, update
12061238
return service, err
12071239
}
12081240

1241+
// GetContainerPortsByPodUID returns a PortsByPodUID map on the given endpoints.
12091242
func GetContainerPortsByPodUID(endpoints *v1.Endpoints) PortsByPodUID {
12101243
m := PortsByPodUID{}
12111244
for _, ss := range endpoints.Subsets {
@@ -1222,7 +1255,10 @@ func GetContainerPortsByPodUID(endpoints *v1.Endpoints) PortsByPodUID {
12221255
return m
12231256
}
12241257

1258+
// PortsByPodName maps pod name to ports.
12251259
type PortsByPodName map[string][]int
1260+
1261+
// PortsByPodUID maps UID to ports.
12261262
type PortsByPodUID map[types.UID][]int
12271263

12281264
func translatePodNameToUIDOrFail(c clientset.Interface, ns string, expectedEndpoints PortsByPodName) PortsByPodUID {
@@ -1261,6 +1297,7 @@ func validatePortsOrFail(endpoints PortsByPodUID, expectedEndpoints PortsByPodUI
12611297
}
12621298
}
12631299

1300+
// ValidateEndpointsOrFail validates that the given service exists and is served by the given expectedEndpoints.
12641301
func ValidateEndpointsOrFail(c clientset.Interface, namespace, serviceName string, expectedEndpoints PortsByPodName) {
12651302
ginkgo.By(fmt.Sprintf("waiting up to %v for service %s in namespace %s to expose endpoints %v", ServiceStartTimeout, serviceName, namespace, expectedEndpoints))
12661303
i := 1
@@ -1348,6 +1385,7 @@ func StartServeHostnameService(c clientset.Interface, svc *v1.Service, ns string
13481385
return podNames, serviceIP, nil
13491386
}
13501387

1388+
// StopServeHostnameService stops the given service.
13511389
func StopServeHostnameService(clientset clientset.Interface, ns, name string) error {
13521390
if err := DeleteRCAndWaitForGC(clientset, ns, name); err != nil {
13531391
return err
@@ -1439,6 +1477,7 @@ func VerifyServeHostnameServiceUp(c clientset.Interface, ns, host string, expect
14391477
return nil
14401478
}
14411479

1480+
// VerifyServeHostnameServiceDown verifies that the given service isn't served.
14421481
func VerifyServeHostnameServiceDown(c clientset.Interface, host string, serviceIP string, servicePort int) error {
14431482
ipPort := net.JoinHostPort(serviceIP, strconv.Itoa(servicePort))
14441483
// The current versions of curl included in CentOS and RHEL distros
@@ -1466,13 +1505,15 @@ func CleanupServiceResources(c clientset.Interface, loadBalancerName, region, zo
14661505
TestContext.CloudConfig.Provider.CleanupServiceResources(c, loadBalancerName, region, zone)
14671506
}
14681507

1508+
// DescribeSvc logs the output of kubectl describe svc for the given namespace
14691509
func DescribeSvc(ns string) {
14701510
Logf("\nOutput of kubectl describe svc:\n")
14711511
desc, _ := RunKubectl(
14721512
"describe", "svc", fmt.Sprintf("--namespace=%v", ns))
14731513
Logf(desc)
14741514
}
14751515

1516+
// CreateServiceSpec returns a Service object for testing.
14761517
func CreateServiceSpec(serviceName, externalName string, isHeadless bool, selector map[string]string) *v1.Service {
14771518
headlessService := &v1.Service{
14781519
ObjectMeta: metav1.ObjectMeta{
@@ -1502,6 +1543,7 @@ func EnableAndDisableInternalLB() (enable func(svc *v1.Service), disable func(sv
15021543
return TestContext.CloudConfig.Provider.EnableAndDisableInternalLB()
15031544
}
15041545

1546+
// GetServiceLoadBalancerCreationTimeout returns a timeout value for creating a load balancer of a service.
15051547
func GetServiceLoadBalancerCreationTimeout(cs clientset.Interface) time.Duration {
15061548
if nodes := GetReadySchedulableNodesOrDie(cs); len(nodes.Items) > LargeClusterMinNodesNumber {
15071549
return LoadBalancerCreateTimeoutLarge

test/e2e/framework/util.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,10 @@ const (
133133
// Poll is how often to Poll pods, nodes and claims.
134134
Poll = 2 * time.Second
135135

136+
// PollShortTimeout is the short timeout value in polling.
136137
PollShortTimeout = 1 * time.Minute
137-
PollLongTimeout = 5 * time.Minute
138+
// PollLongTimeout is the long timeout value in polling.
139+
PollLongTimeout = 5 * time.Minute
138140

139141
// ServiceAccountProvisionTimeout is how long to wait for a service account to be provisioned.
140142
// service accounts are provisioned after namespace creation

0 commit comments

Comments
 (0)