specs

package
v0.0.0-...-cf9bbde Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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
}

Jump to

Keyboard shortcuts

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