scaletest

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddSharedLabelsToAllPods

type AddSharedLabelsToAllPods struct {
	KubeConfigFilePath    string
	NumSharedLabelsPerPod int
	Namespace             string
}

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

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

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
	NumSharedLabelsPerPod       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

func (*CreateResources) Stop

func (c *CreateResources) Stop() error

Require for background steps

type DeleteAndReAddLabels

type DeleteAndReAddLabels struct {
	KubeConfigFilePath    string
	NumSharedLabelsPerPod int
	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
	NumSharedLabelsPerPod         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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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