sigs.k8s.io/kueue@v0.6.2/test/util/constants.go (about)

     1  /*
     2  Copyright 2022 The Kubernetes Authors.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8      http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  package util
    18  
    19  import (
    20  	"time"
    21  )
    22  
    23  const (
    24  	Timeout = time.Second * 30
    25  	// LongTimeout is meant for E2E tests when waiting for complex operations
    26  	// such as running pods to completion.
    27  	LongTimeout = 45 * time.Second
    28  	// StartupTimeout is meant to be used for waiting for Kueue to startup, given
    29  	// that cert updates can take up to 3 minutes to propagate to the filesystem.
    30  	// Taken into account that after the certificates are ready, all Kueue's components
    31  	// need started and the time it takes for a change in ready probe response triggers
    32  	// a change in the deployment status.
    33  	StartUpTimeout     = 5 * time.Minute
    34  	ConsistentDuration = time.Second * 3
    35  	Interval           = time.Millisecond * 250
    36  )