v1alpha1

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the loadtest v1alpha1 API group +kubebuilder:object:generate=true +groupName=loadtest.artillery.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "loadtest.artillery.io", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type Config

type Config struct {
	ConfigMap string `json:"configMap,omitempty"`
}

func (*Config) DeepCopy

func (in *Config) DeepCopy() *Config

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Config.

func (*Config) DeepCopyInto

func (in *Config) DeepCopyInto(out *Config)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type External

type External struct {
	Payload   *Payload   `json:"payload,omitempty"`
	Processor *Processor `json:"processor,omitempty"`
}

func (*External) DeepCopy

func (in *External) DeepCopy() *External

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new External.

func (*External) DeepCopyInto

func (in *External) DeepCopyInto(out *External)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type LoadTest

type LoadTest struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   LoadTestSpec   `json:"spec,omitempty"`
	Status LoadTestStatus `json:"status,omitempty"`
}

LoadTest is the Schema for the loadtests API

func NewLoadTest

func NewLoadTest(loadTestName, configMapName, env string, count int) *LoadTest

func (*LoadTest) DeepCopy

func (in *LoadTest) DeepCopy() *LoadTest

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadTest.

func (*LoadTest) DeepCopyInto

func (in *LoadTest) DeepCopyInto(out *LoadTest)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*LoadTest) DeepCopyObject

func (in *LoadTest) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*LoadTest) MarshalWithIndent

func (lt *LoadTest) MarshalWithIndent(indent int) ([]byte, error)

type LoadTestCondition

type LoadTestCondition struct {
	// Type of job condition, Progressing, Complete or Failed.
	Type LoadTestConditionType `json:"type"`
	// Status of the condition, one of True, False, Unknown.
	Status core.ConditionStatus `json:"status"`
	// Last time the condition was checked.
	// +optional
	LastProbeTime metav1.Time `json:"lastProbeTime,omitempty"`
	// Last time the condition transit from one status to another.
	// +optional
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
	// (brief) reason for the condition's last transition.
	// +optional
	Reason string `json:"reason,omitempty"`
	// Human-readable message indicating details about last transition.
	// +optional
	Message string `json:"message,omitempty"`
}

func (*LoadTestCondition) DeepCopy

func (in *LoadTestCondition) DeepCopy() *LoadTestCondition

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadTestCondition.

func (*LoadTestCondition) DeepCopyInto

func (in *LoadTestCondition) DeepCopyInto(out *LoadTestCondition)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type LoadTestConditionType

type LoadTestConditionType string
const (
	// LoadTestProgressing means the load test's workers are executing tests against a test script target.
	LoadTestProgressing LoadTestConditionType = "Progressing"
	// LoadTestCompleted means the load test has completed its execution.
	LoadTestCompleted LoadTestConditionType = "Completed"
)

These are valid conditions of a load-test.

type LoadTestList

type LoadTestList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []LoadTest `json:"items"`
}

LoadTestList contains a list of LoadTest

func (*LoadTestList) DeepCopy

func (in *LoadTestList) DeepCopy() *LoadTestList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadTestList.

func (*LoadTestList) DeepCopyInto

func (in *LoadTestList) DeepCopyInto(out *LoadTestList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*LoadTestList) DeepCopyObject

func (in *LoadTestList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type LoadTestSpec

type LoadTestSpec struct {
	Count       int        `json:"count,omitempty"`
	Environment string     `json:"environment,omitempty"`
	TestScript  TestScript `json:"testScript,omitempty"`
}

LoadTestSpec defines the desired state of LoadTest

func (*LoadTestSpec) DeepCopy

func (in *LoadTestSpec) DeepCopy() *LoadTestSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadTestSpec.

func (*LoadTestSpec) DeepCopyInto

func (in *LoadTestSpec) DeepCopyInto(out *LoadTestSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type LoadTestStatus

type LoadTestStatus struct {
	// Important: Run "make" to regenerate code after modifying this file
	Conditions []LoadTestCondition `json:"conditions,omitempty"`

	// Represents time when the loadtest controller started processing a loadtest.
	// It is represented in RFC3339 form and is in UTC.
	// +optional
	StartTime *metav1.Time `json:"startTime,omitempty"`

	// Represents time when the loadtest was completed. It is not guaranteed to
	// be set in happens-before order across separate operations.
	// It is represented in RFC3339 form and is in UTC.
	// The completion time is only set when the loadtest finishes successfully.
	// +optional
	CompletionTime *metav1.Time `json:"completionTime,omitempty"`

	// Formatted duration of time required to complete the load test.
	// This is calculated using StartTime and CompletionTime
	Duration string `json:"duration,omitempty"`

	// The number of actively running LoadTest worker pods.
	Active int32 `json:"active,omitempty"`

	// The number of LoadTest worker pods which reached phase Succeeded.
	Succeeded int32 `json:"succeeded,omitempty"`

	// The number of LoadTest worker pods which reached phase Failed.
	Failed int32 `json:"failed,omitempty"`

	// Formatted load test worker pod completions calculated from the underlying succeeded jobs vs configured
	// job completions/parallelism
	Completions string `json:"completions,omitempty"`

	// The image used to run the load tests
	Image string `json:"image,omitempty"`
}

LoadTestStatus defines the observed state of LoadTest

func (*LoadTestStatus) DeepCopy

func (in *LoadTestStatus) DeepCopy() *LoadTestStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadTestStatus.

func (*LoadTestStatus) DeepCopyInto

func (in *LoadTestStatus) DeepCopyInto(out *LoadTestStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Main

type Main struct {
	ConfigMap string `json:"configMap,omitempty"`
}

func (*Main) DeepCopy

func (in *Main) DeepCopy() *Main

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Main.

func (*Main) DeepCopyInto

func (in *Main) DeepCopyInto(out *Main)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Payload

type Payload struct {
	ConfigMaps []string `json:"configMaps,omitempty"`
}

func (*Payload) DeepCopy

func (in *Payload) DeepCopy() *Payload

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Payload.

func (*Payload) DeepCopyInto

func (in *Payload) DeepCopyInto(out *Payload)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Processor

type Processor struct {
	Main    Main    `json:"main,omitempty"`
	Related Related `json:"related,omitempty"`
}

func (*Processor) DeepCopy

func (in *Processor) DeepCopy() *Processor

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Processor.

func (*Processor) DeepCopyInto

func (in *Processor) DeepCopyInto(out *Processor)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Related struct {
	ConfigMaps []string `json:"configMaps,omitempty"`
}

func (*Related) DeepCopy

func (in *Related) DeepCopy() *Related

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Related.

func (*Related) DeepCopyInto

func (in *Related) DeepCopyInto(out *Related)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TestScript

type TestScript struct {
	Config   Config    `json:"config,omitempty"`
	External *External `json:"external,omitempty"`
}

func (*TestScript) DeepCopy

func (in *TestScript) DeepCopy() *TestScript

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestScript.

func (*TestScript) DeepCopyInto

func (in *TestScript) DeepCopyInto(out *TestScript)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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