package scalability
import "k8s.io/kubernetes/test/e2e/scalability"
Index ¶
- Constants
- Variables
- func CreateNamespaces(f *framework.Framework, namespaceCount int, namePrefix string, testPhase *timer.Phase) ([]*v1.Namespace, error)
- func CreateQuotas(f *framework.Framework, namespaces []*v1.Namespace, podCount int, testPhase *timer.Phase) error
- func GenerateConfigsForGroup( nss []*v1.Namespace, groupName string, size, count int, image string, command []string, kind schema.GroupKind, secretsPerPod int, configMapsPerPod int, ) ([]testutils.RunObjectConfig, []*testutils.SecretConfig, []*testutils.ConfigMapConfig)
- func SIGDescribe(text string, body func()) bool
- type DensityTestConfig
Constants ¶
const ( // PodStartupLatencyThreshold holds the latency threashold for pod startup PodStartupLatencyThreshold = 5 * time.Second // MinSaturationThreshold holds the minimum staturation threashold MinSaturationThreshold = 2 * time.Minute // MinPodsPerSecondThroughput holds the minimum pod/sec throughput MinPodsPerSecondThroughput = 8 // DensityPollInterval holds the desity of polling interval DensityPollInterval = 10 * time.Second // MinPodStartupMeasurements holds the minimum number of measurements related to pod-startup MinPodStartupMeasurements = 500 )
const ( // UnreadyNodeToleration denotes time the node can be unreachable/not ready. UnreadyNodeToleration = 15 * time.Minute )
Variables ¶
var MaxContainerFailures = 0
MaxContainerFailures holds the maximum container failures this test tolerates before failing.
var MaxMissingPodStartupMeasurements = 0
MaxMissingPodStartupMeasurements holds the maximum number of missing measurements related to pod-startup that the test tolerates.
Functions ¶
func CreateNamespaces ¶
func CreateNamespaces(f *framework.Framework, namespaceCount int, namePrefix string, testPhase *timer.Phase) ([]*v1.Namespace, error)
CreateNamespaces creates a namespace
func CreateQuotas ¶
func CreateQuotas(f *framework.Framework, namespaces []*v1.Namespace, podCount int, testPhase *timer.Phase) error
CreateQuotas creates quotas
func GenerateConfigsForGroup ¶
func GenerateConfigsForGroup( nss []*v1.Namespace, groupName string, size, count int, image string, command []string, kind schema.GroupKind, secretsPerPod int, configMapsPerPod int, ) ([]testutils.RunObjectConfig, []*testutils.SecretConfig, []*testutils.ConfigMapConfig)
GenerateConfigsForGroup generates the configuration needed for a group
func SIGDescribe ¶
SIGDescribe is the entry point for the sig-scalability e2e framework
Types ¶
type DensityTestConfig ¶
type DensityTestConfig struct { Configs []testutils.RunObjectConfig ClientSets []clientset.Interface ScaleClients []scaleclient.ScalesGetter PollInterval time.Duration PodCount int SecretConfigs []*testutils.SecretConfig ConfigMapConfigs []*testutils.ConfigMapConfig DaemonConfigs []*testutils.DaemonConfig // contains filtered or unexported fields }
DensityTestConfig holds the configurations for e2e scalability tests
Source Files ¶
common.go density.go framework.go load.go
- Version
- v1.16.9
- Published
- Apr 16, 2020
- Platform
- js/wasm
- Imports
- 47 packages
- Last checked
- 49 seconds ago –
Tools for package owners.