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 ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Config.
func (*Config) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new External.
func (*External) DeepCopyInto ¶
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 (*LoadTest) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadTest.
func (*LoadTest) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LoadTest) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Main.
func (*Main) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Payload.
func (*Payload) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Processor.
func (*Processor) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Related ¶
type Related struct {
ConfigMaps []string `json:"configMaps,omitempty"`
}
func (*Related) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Related.
func (*Related) DeepCopyInto ¶
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.