Documentation ¶
Index ¶
- Constants
- func ReserveMemory(f *framework.Framework, id string, replicas, megabytes int, expectRunning bool, ...) func() error
- func ReserveMemoryWithPriority(f *framework.Framework, id string, replicas, megabytes int, expectRunning bool, ...) func() error
- func ReserveMemoryWithSelectorAndTolerations(f *framework.Framework, id string, replicas, megabytes int, expectRunning bool, ...) func() error
- func SIGDescribe(text string, body func()) bool
- func ScheduleAnySingleGpuPod(f *framework.Framework, id string) error
- func ScheduleGpuPod(f *framework.Framework, id string, gpuType string, gpuLimit int64) error
- func WaitForClusterSizeFunc(c clientset.Interface, sizeFunc func(int) bool, timeout time.Duration) error
- func WaitForClusterSizeFuncWithUnready(c clientset.Interface, sizeFunc func(int) bool, timeout time.Duration, ...) error
- type CriticalAddonsOnlyError
- type CustomMetricTestCase
- type DNSParamsLinear
- type HPAScaleTest
Constants ¶
const ( DNSdefaultTimeout = 5 * time.Minute ClusterAddonLabelKey = "k8s-app" DNSLabelName = "kube-dns" DNSAutoscalerLabelName = "kube-dns-autoscaler" )
Constants used in dns-autoscaling test.
Variables ¶
This section is empty.
Functions ¶
func ReserveMemory ¶
func ReserveMemory(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(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 ReserveMemoryWithSelectorAndTolerations ¶
func ReserveMemoryWithSelectorAndTolerations(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 SIGDescribe ¶
SIGDescribe annotates the test with the SIG label.
func ScheduleAnySingleGpuPod ¶
ScheduleAnySingleGpuPod schedules a pod which requires single GPU of any type
func ScheduleGpuPod ¶
ScheduleGpuPod schedules a pod which requires a given number of gpus of given type
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 ¶
func (CriticalAddonsOnlyError) Error() string
type CustomMetricTestCase ¶
type CustomMetricTestCase struct {
// contains filtered or unexported fields
}
CustomMetricTestCase is a struct for test cases.
type DNSParamsLinear ¶
type DNSParamsLinear struct {
// contains filtered or unexported fields
}
DNSParamsLinear is a struct for number of DNS pods.
type HPAScaleTest ¶
type HPAScaleTest struct {
// contains filtered or unexported fields
}
HPAScaleTest struct is used by the scale(...) function.