kubernetesk8s.io/kubernetes/test/e2e/autoscaling Index | Files

package autoscaling

import "k8s.io/kubernetes/test/e2e/autoscaling"

Index

Constants

const (
	DNSdefaultTimeout    = 5 * time.Minute
	ClusterAddonLabelKey = "k8s-app"
	DNSLabelName         = "kube-dns"
)

Constants used in dns-autoscaling test.

Variables

var SIGDescribe = framework.SIGDescribe("autoscaling")

SIGDescribe annotates the test with the SIG label.

Functions

func ReserveMemory

func ReserveMemory(ctx context.Context, f *framework.Framework, id string, replicas, megabytes int, expectRunning bool, timeout time.Duration) func() error

ReserveMemory creates a replication controller with pods that, in summation, request the specified amount of memory.

func ReserveMemoryWithPriority

func ReserveMemoryWithPriority(ctx context.Context, f *framework.Framework, id string, replicas, megabytes int, expectRunning bool, timeout time.Duration, priorityClassName string) func() error

ReserveMemoryWithPriority creates a replication controller with pods with priority that, in summation, request the specified amount of memory.

func ReserveMemoryWithSchedulerName

func ReserveMemoryWithSchedulerName(ctx context.Context, f *framework.Framework, id string, replicas, megabytes int, expectRunning bool, timeout time.Duration, schedulerName string) func() error

ReserveMemoryWithSchedulerName creates a replication controller with pods with scheduler name that, in summation, request the specified amount of memory.

func WaitForClusterSizeFunc

func WaitForClusterSizeFunc(ctx context.Context, c clientset.Interface, sizeFunc func(int) bool, timeout time.Duration) error

WaitForClusterSizeFunc waits until the cluster size matches the given function.

func WaitForClusterSizeFuncWithUnready

func WaitForClusterSizeFuncWithUnready(ctx context.Context, c clientset.Interface, sizeFunc func(int) bool, timeout time.Duration, expectedUnready int) error

WaitForClusterSizeFuncWithUnready waits until the cluster size matches the given function and assumes some unready nodes.

Types

type CriticalAddonsOnlyError

type CriticalAddonsOnlyError struct{}

CriticalAddonsOnlyError implements the `error` interface, and signifies the presence of the `CriticalAddonsOnly` taint on the node.

func (CriticalAddonsOnlyError) Error

type DNSParamsLinear

type DNSParamsLinear struct {
	// contains filtered or unexported fields
}

DNSParamsLinear is a struct for number of DNS pods.

type HPAContainerResourceScaleTest

type HPAContainerResourceScaleTest struct {
	// contains filtered or unexported fields
}

type HPAScaleTest

type HPAScaleTest struct {
	// contains filtered or unexported fields
}

HPAScaleTest struct is used by the scale(...) function.

Source Files

autoscaling_timer.go cluster_size_autoscaling.go dns_autoscaling.go framework.go horizontal_pod_autoscaling.go horizontal_pod_autoscaling_behavior.go

Version
v1.33.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
38 packages
Last checked
6 hours ago

Tools for package owners.