Documentation
¶
Index ¶
- func ListNamespaces(ctx context.Context, input ClusterTestInput)
- func RunPodChurnTest(ctx context.Context, input ClusterTestInput, testConfig PodChurnTestConfig)
- func RunStatefulSetTest(ctx context.Context, input ClusterTestInput, testConfig StatefulSetTestConfig)
- type ClusterTestInput
- type PodChurnTestConfig
- type StatefulSetTestConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListNamespaces ¶
func ListNamespaces(ctx context.Context, input ClusterTestInput)
func RunPodChurnTest ¶
func RunPodChurnTest(ctx context.Context, input ClusterTestInput, testConfig PodChurnTestConfig)
func RunStatefulSetTest ¶
func RunStatefulSetTest(ctx context.Context, input ClusterTestInput, testConfig StatefulSetTestConfig)
Types ¶
type ClusterTestInput ¶
type ClusterTestInput struct {
BootstrapClusterProxy framework.ClusterProxy
Cluster *clusterv1.Cluster
}
type PodChurnTestConfig ¶
type PodChurnTestConfig struct {
// Namespaces indicates the number of namespaces to use for all pods
Namespaces int
// Cleanup indicates whether or not to explicitly cleanup pods after test, 0=no, 1=yes
Cleanup int
// NumChurnIterations is the number of pod churn lifecycles to perform during the test
NumChurnIterations int
// PodStartTimeoutMins indicates how long to wait for all pods to be running
PodStartTimeoutMins int
// PodsPerNode determines how many pods to create, per node, in the cluster
PodsPerNode int
// PodChurnRate configures the desired pods to create, and delete per second
PodChurnRate int
// PodsPerDeployment sets the maximum number of pod replicas in a single deployment; as more pods are needed,
PodsPerDeployment int
}
type StatefulSetTestConfig ¶
type StatefulSetTestConfig struct {
// Namespaces indicates the number of namespaces to use for all pods
Namespaces int
// InstancesPerNamespace indicates the number of statefulset instances per namespace
InstancesPerNamespace int
// TotalScaleSteps is the number of scale steps to use during a test run
TotalScaleSteps int
// PodsPerScaleStep is the number of stateful set pods to schedule per step
PodsPerScaleStep int
// StepDelayMinutes is the delay in between scale steps, in minutes
StepDelayMinutes int
// PvcStorageClass declares which type of storage driver to use, valid values are 'azurefile-csi' or 'azuredisk-csi'
PvcStorageClass string
// PvcStorageQuantity is the amount of storage to reserve, e.g., '8Gi'
PvcStorageQuantity string
// PodManagementPolicy; choose 'OrderedReady' for incremental statefulset scale up, 'Parallel' for complete immediate pod creation
PodManagementPolicy string
}
Click to show internal directories.
Click to hide internal directories.