Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddSharedLabelsToAllPods ¶
type AddSharedLabelsToAllPods struct {}
func (*AddSharedLabelsToAllPods) Prevalidate ¶
func (a *AddSharedLabelsToAllPods) Prevalidate() error
Useful when wanting to do parameter checking, for example if a parameter length is known to be required less than 80 characters, do this here so we don't find out later on when we run the step when possible, try to avoid making external calls, this should be fast and simple
func (*AddSharedLabelsToAllPods) Run ¶
func (a *AddSharedLabelsToAllPods) Run() error
Primary step where test logic is executed Returning an error will cause the test to fail
func (*AddSharedLabelsToAllPods) Stop ¶
func (a *AddSharedLabelsToAllPods) Stop() error
Require for background steps
type AddUniqueLabelsToAllPods ¶
type AddUniqueLabelsToAllPods struct { KubeConfigFilePath string NumUniqueLabelsPerPod int Namespace string }
func (*AddUniqueLabelsToAllPods) Prevalidate ¶
func (a *AddUniqueLabelsToAllPods) Prevalidate() error
Useful when wanting to do parameter checking, for example if a parameter length is known to be required less than 80 characters, do this here so we don't find out later on when we run the step when possible, try to avoid making external calls, this should be fast and simple
func (*AddUniqueLabelsToAllPods) Run ¶
func (a *AddUniqueLabelsToAllPods) Run() error
Primary step where test logic is executed Returning an error will cause the test to fail
func (*AddUniqueLabelsToAllPods) Stop ¶
func (a *AddUniqueLabelsToAllPods) Stop() error
Require for background steps
type CreateNetworkPolicies ¶
type CreateNetworkPolicies struct { KubeConfigFilePath string Namespace string NumNetworkPolicies int NumUnappliedNetworkPolicies int }
func (*CreateNetworkPolicies) Prevalidate ¶
func (c *CreateNetworkPolicies) Prevalidate() error
Useful when wanting to do parameter checking, for example if a parameter length is known to be required less than 80 characters, do this here so we don't find out later on when we run the step when possible, try to avoid making external calls, this should be fast and simple
func (*CreateNetworkPolicies) Run ¶
func (c *CreateNetworkPolicies) Run() error
Primary step where test logic is executed Returning an error will cause the test to fail
func (*CreateNetworkPolicies) Stop ¶
func (c *CreateNetworkPolicies) Stop() error
Require for background steps
type CreateResources ¶
type CreateResources struct { Namespace string KubeConfigFilePath string NumKwokDeployments int NumKwokReplicas int RealPodType string NumRealDeployments int NumRealReplicas int NumRealServices int NumUniqueLabelsPerDeployment int }
func (*CreateResources) Prevalidate ¶
func (c *CreateResources) Prevalidate() error
Useful when wanting to do parameter checking, for example if a parameter length is known to be required less than 80 characters, do this here so we don't find out later on when we run the step when possible, try to avoid making external calls, this should be fast and simple
func (*CreateResources) Run ¶
func (c *CreateResources) Run() error
Primary step where test logic is executed Returning an error will cause the test to fail
type DeleteAndReAddLabels ¶
type DeleteAndReAddLabels struct { KubeConfigFilePath string DeleteLabels bool DeleteLabelsInterval time.Duration DeleteLabelsTimes int Namespace string }
func (*DeleteAndReAddLabels) Prevalidate ¶
func (d *DeleteAndReAddLabels) Prevalidate() error
Useful when wanting to do parameter checking, for example if a parameter length is known to be required less than 80 characters, do this here so we don't find out later on when we run the step when possible, try to avoid making external calls, this should be fast and simple
func (*DeleteAndReAddLabels) Run ¶
func (d *DeleteAndReAddLabels) Run() error
Primary step where test logic is executed Returning an error will cause the test to fail
func (*DeleteAndReAddLabels) Stop ¶
func (d *DeleteAndReAddLabels) Stop() error
Require for background steps
type GetAndPublishMetrics ¶ added in v0.0.19
type GetAndPublishMetrics struct { KubeConfigFilePath string AdditionalTelemetryProperty map[string]string Labels map[string]string OutputFilePath string // contains filtered or unexported fields }
func (*GetAndPublishMetrics) Prevalidate ¶ added in v0.0.19
func (g *GetAndPublishMetrics) Prevalidate() error
func (*GetAndPublishMetrics) Run ¶ added in v0.0.19
func (g *GetAndPublishMetrics) Run() error
func (*GetAndPublishMetrics) Stop ¶ added in v0.0.19
func (g *GetAndPublishMetrics) Stop() error
type Options ¶
type Options struct { Namespace string MaxKwokPodsPerNode int NumKwokDeployments int NumKwokReplicas int MaxRealPodsPerNode int NumRealDeployments int RealPodType string NumRealReplicas int NumRealServices int NumNetworkPolicies int NumUnapliedNetworkPolicies int NumUniqueLabelsPerPod int NumUniqueLabelsPerDeployment int KubeconfigPath string RestartNpmPods bool DebugExitAfterPrintCounts bool DebugExitAfterGeneration bool SleepAfterCreation time.Duration DeleteKwokPods bool DeleteRealPods bool DeletePodsInterval time.Duration DeletePodsTimes int DeleteLabels bool DeleteLabelsInterval time.Duration DeleteLabelsTimes int DeleteNetworkPolicies bool DeleteNetworkPoliciesInterval time.Duration DeleteNetworkPoliciesTimes int LabelsToGetMetrics map[string]string AdditionalTelemetryProperty map[string]string // contains filtered or unexported fields }
Options holds parameters for the scale test
type ValidateAndPrintOptions ¶
type ValidateAndPrintOptions struct {
Options *Options
}
func (*ValidateAndPrintOptions) Prevalidate ¶
func (po *ValidateAndPrintOptions) Prevalidate() error
Useful when wanting to do parameter checking, for example if a parameter length is known to be required less than 80 characters, do this here so we don't find out later on when we run the step when possible, try to avoid making external calls, this should be fast and simple
func (*ValidateAndPrintOptions) Run ¶
func (po *ValidateAndPrintOptions) Run() error
Returning an error will cause the test to fail
func (*ValidateAndPrintOptions) Stop ¶
func (po *ValidateAndPrintOptions) Stop() error
Require for background steps
type ValidateNumOfNodes ¶
type ValidateNumOfNodes struct { NumNodesRequired int Label map[string]string KubeConfigFilePath string }
func (*ValidateNumOfNodes) Prevalidate ¶
func (v *ValidateNumOfNodes) Prevalidate() error
Useful when wanting to do parameter checking, for example if a parameter length is known to be required less than 80 characters, do this here so we don't find out later on when we run the step when possible, try to avoid making external calls, this should be fast and simple
func (*ValidateNumOfNodes) Run ¶
func (v *ValidateNumOfNodes) Run() error
Primary step where test logic is executed Returning an error will cause the test to fail
func (*ValidateNumOfNodes) Stop ¶
func (v *ValidateNumOfNodes) Stop() error
Require for background steps