Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the cpe v1 API group +kubebuilder:object:generate=true +groupName=cpe.cogadvisor.io
Index ¶
- Variables
- type Benchmark
- type BenchmarkBestResult
- type BenchmarkList
- type BenchmarkOperator
- type BenchmarkOperatorList
- type BenchmarkOperatorMeta
- type BenchmarkOperatorSpec
- type BenchmarkOperatorStatus
- type BenchmarkResult
- type BenchmarkResultItem
- type BenchmarkSpec
- type BenchmarkStatus
- type ConfigSpec
- type DeploymentSpec
- type HelmSpec
- type IterationHash
- type IterationItem
- type IterationSpec
- type NodeSelectionSpec
- type YAMLSpec
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "cpe.cogadvisor.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 Benchmark ¶
type Benchmark struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec BenchmarkSpec `json:"spec,omitempty"` Status BenchmarkStatus `json:"status,omitempty"` }
Benchmark is the Schema for the benchmarks API
type BenchmarkBestResult ¶
type BenchmarkList ¶
type BenchmarkList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Benchmark `json:"items"` }
BenchmarkList contains a list of Benchmark
type BenchmarkOperator ¶
type BenchmarkOperator struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec BenchmarkOperatorSpec `json:"spec,omitempty"` Status BenchmarkOperatorStatus `json:"status,omitempty"` }
BenchmarkOperator is the Schema for the benchmarkoperators API
type BenchmarkOperatorList ¶
type BenchmarkOperatorList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []BenchmarkOperator `json:"items"` }
BenchmarkOperatorList contains a list of BenchmarkOperator
type BenchmarkOperatorMeta ¶
type BenchmarkOperatorSpec ¶
type BenchmarkOperatorSpec struct { APIVersion string `json:"apiVersion"` Kind string `json:"kind"` Adaptor string `json:"adaptor,omitempty"` CRD YAMLSpec `json:"crd,omitempty"` DeploySpec DeploymentSpec `json:"deploySpec"` }
BenchmarkOperatorSpec defines the desired state of BenchmarkOperator
type BenchmarkOperatorStatus ¶
type BenchmarkOperatorStatus struct { }
BenchmarkOperatorStatus defines the observed state of BenchmarkOperator
type BenchmarkResult ¶
type BenchmarkResult struct { BuildID string `json:"build"` IterationID string `json:"scenarioID"` IterationMap map[string]string `json:"scenarios"` ConfigurationID string `json:"configID"` ConfigurationMap map[string]string `json:"configurations"` Items []BenchmarkResultItem `json:"repetitions"` }
BenchmarkPerformanceResult
type BenchmarkResultItem ¶
type BenchmarkSpec ¶
type BenchmarkSpec struct { // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster // Important: Run "make" to regenerate code after modifying this file Operator BenchmarkOperatorMeta `json:"benchmarkOperator"` Spec string `json:"benchmarkSpec"` IterationSpec IterationSpec `json:"iterationSpec,omitempty"` Repetition int `json:"repetition,omitempty"` JobInterval int `json:"interval,omitempty"` ParserKey string `json:"parserKey,omitempty"` BuildConfigs []ConfigSpec `json:"trackBuildConfigs,omitempty"` Sidecar bool `json:"sidecar,omitempty"` }
BenchmarkSpec defines the desired state of Benchmark
type BenchmarkStatus ¶
type BenchmarkStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "make" to regenerate code after modifying this file Hash []IterationHash `json:"hash,omitempty"` Results []BenchmarkResult `json:"results,omitempty"` BestResults []BenchmarkBestResult `json:"bestResults,omitempty"` TrackedBuilds []string `json:"builds,omitempty"` JobCompleted string `json:"jobCompleted,omitempty"` }
BenchmarkStatus defines the observed state of Benchmark
type ConfigSpec ¶
type ConfigSpec struct { Name string `json:"name"` Kind string `json:"kind,omitempty"` Namespace string `json:"namespace,omitempty"` }
BuildConfig Definition
type DeploymentSpec ¶
type IterationHash ¶
type IterationHash struct { Hash string `json:"hash"` Build string `json:"build"` Iteration map[string]string `json:"iterations"` Repetition string `json:"run"` }
BemchmarkIterationHash
type IterationItem ¶
type IterationItem struct { Name string `json:"name"` Location string `json:"location"` Values []string `json:"values,omitempty"` }
Iteration Definition
type IterationSpec ¶
type IterationSpec struct { Iteration []IterationItem `json:"iterations,omitempty"` NodeSelection *NodeSelectionSpec `json:"nodeSelection,omitempty"` Configuration []IterationItem `json:"configurations,omitempty"` Sequential bool `json:"sequential,omitempty"` Minimize bool `json:"minimize,omitempty"` }
type NodeSelectionSpec ¶
type NodeSelectionSpec struct { Location string `json:"location"` TunedValues []string `json:"values"` TargetSelector *metav1.LabelSelector `json:"selector,omitempty"` }