Documentation ¶
Index ¶
- func RunAutoscaleUpCountPods(t *testing.T, class, metric string)
- func ScaleToWithin(t *testing.T, scale int, duration time.Duration, latencies Latencies)
- func Setup(t *testing.T) *test.Clients
- func SetupAlternativeNamespace(t *testing.T) *test.Clients
- func SetupServingNamespaceforSecurityTesting(t *testing.T) *test.Clients
- func SetupWithNamespace(t *testing.T, namespace string) *test.Clients
- func WaitForScaleToZero(t *testing.T, deploymentName string, clients *test.Clients) error
- type Latencies
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunAutoscaleUpCountPods ¶ added in v0.15.0
RunAutoscaleUpCountPods is a test kernel to test the chosen autoscaler using the given metric tracks the given target.
func ScaleToWithin ¶ added in v0.4.0
func SetupAlternativeNamespace ¶ added in v0.6.0
SetupAlternativeNamespace creates the client objects needed in e2e tests under the alternative namespace.
func SetupServingNamespaceforSecurityTesting ¶ added in v0.13.0
SetupServingNamespaceforSecurityTesting creates the client objects needed in e2e tests under the security testing namespace.
func SetupWithNamespace ¶ added in v0.6.0
SetupWithNamespace creates the client objects needed in the e2e tests under the specified namespace.
Types ¶
type Latencies ¶ added in v0.4.0
type Latencies interface { // Add takes the name of this measurement and the time at which it began. // This should be called at the moment of completion, so that duration may // be computed with `time.Since(start)`. We use this signature to that this // function is suitable for use in a `defer`. Add(name string, start time.Time) }
Latencies is an interface for providing mechanisms for recording timings for the parts of the scale test.
Click to show internal directories.
Click to hide internal directories.