Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the perf v1 API group +kubebuilder:object:generate=true +groupName=perf.baseline.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "perf.baseline.io", Version: "v1"} // 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 Baseline ¶
type Baseline struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec BaselineSpec `json:"spec"` Status BaselineStatus `json:"status,omitempty"` }
+kubebuilder:printcolumn:name="Command",type=string,JSONPath=`.status.command` +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status Baseline is the Schema for the baselines API
func (*Baseline) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Baseline.
func (*Baseline) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Baseline) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BaselineList ¶
type BaselineList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Baseline `json:"items"` }
BaselineList contains a list of Baseline
func (*BaselineList) DeepCopy ¶
func (in *BaselineList) DeepCopy() *BaselineList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BaselineList.
func (*BaselineList) DeepCopyInto ¶
func (in *BaselineList) DeepCopyInto(out *BaselineList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BaselineList) DeepCopyObject ¶
func (in *BaselineList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BaselineSpec ¶
type BaselineSpec struct { //+kubebuilder:validation:Optional //+kubebuilder:validation:Minimum=0 // Cpu is the the number of cores Cpu *int32 `json:"cpu"` //+kubebuilder:validation:Optional // Memory is the amount of memory Memory string `json:"mem"` //+kubebuilder:validation:Optional //+kubebuilder:validation:Minimum=0 // Cpu is the the number of cores Io int32 `json:"io"` //+kubebuilder:validation:Optional //+kubebuilder:validation:Minimum=0 // Sock is the number of workers exercising socket I/O networking Sock int32 `json:"sock"` //+kubebuilder:validation:Optional // Custom is a custom string to pass to stress-ng Custom string `json:"custom"` //+kubebuilder:validation:Optional //+kubebuilder:default:="quay.io/jcastillolema/stressng:0.14.01" Image string `json:"image"` //+kubebuilder:validation:Optional HostNetwork bool `json:"hostNetwork"` //+kubebuilder:validation:Optional NodeSelector map[string]string `json:"nodeSelector"` //+kubebuilder:validation:Optional Tolerations []corev1.Toleration `json:"tolerations"` }
BaselineSpec defines the desired state of Baseline
func (*BaselineSpec) DeepCopy ¶
func (in *BaselineSpec) DeepCopy() *BaselineSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BaselineSpec.
func (*BaselineSpec) DeepCopyInto ¶
func (in *BaselineSpec) DeepCopyInto(out *BaselineSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BaselineStatus ¶
BaselineStatus defines the observed state of Baseline
func (*BaselineStatus) DeepCopy ¶
func (in *BaselineStatus) DeepCopy() *BaselineStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BaselineStatus.
func (*BaselineStatus) DeepCopyInto ¶
func (in *BaselineStatus) DeepCopyInto(out *BaselineStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.