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"
	DNSAutoscalerLabelName = "kube-dns-autoscaler"
)

Functions

func CreateNodeSelectorPods

func CreateNodeSelectorPods(f *framework.Framework, id string, replicas int, nodeSelector map[string]string, expectRunning bool)

func ReserveMemory

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

func WaitForClusterSizeFunc

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

WaitForClusterSize waits until the cluster size matches the given function.

func WaitForClusterSizeFuncWithUnready

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

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

Types

type DNSParamsLinear

type DNSParamsLinear 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 horizontal_pod_autoscaling.go

Version
v1.7.16
Published
Mar 29, 2018
Platform
js/wasm
Imports
29 packages
Last checked
15 minutes ago

Tools for package owners.