autoscaling

package
v1.31.0-alpha.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2024 License: Apache-2.0 Imports: 49 Imported by: 17

Documentation

Index

Constants

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

Constants used in dns-autoscaling test.

Variables

View Source
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 added in v1.9.0

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 added in v1.30.0

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 ReserveMemoryWithSelectorAndTolerations added in v1.12.0

func ReserveMemoryWithSelectorAndTolerations(ctx context.Context, f *framework.Framework, id string, replicas, megabytes int, expectRunning bool, timeout time.Duration, selector map[string]string, tolerations []v1.Toleration) func() error

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

func ScheduleAnySingleGpuPod added in v1.12.0

func ScheduleAnySingleGpuPod(ctx context.Context, f *framework.Framework, id string) error

ScheduleAnySingleGpuPod schedules a pod which requires single GPU of any type

func ScheduleGpuPod added in v1.12.0

func ScheduleGpuPod(ctx context.Context, f *framework.Framework, id string, gpuType string, gpuLimit int64) error

ScheduleGpuPod schedules a pod which requires a given number of gpus of given type

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 added in v1.8.0

type CriticalAddonsOnlyError struct{}

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

func (CriticalAddonsOnlyError) Error added in v1.8.0

type DNSParamsLinear

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

DNSParamsLinear is a struct for number of DNS pods.

type HPAContainerResourceScaleTest added in v1.23.0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL