v1

package
v0.0.0-...-417b102 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the cpe v1 API group +kubebuilder:object:generate=true +groupName=cpe.cogadvisor.io

Index

Constants

This section is empty.

Variables

View Source
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 BenchmarkBestResult struct {
	BuildID          string            `json:"build"`
	IterationID      string            `json:"scenarioID"`
	ConfigurationMap map[string]string `json:"configurations"`
	PerformanceKey   string            `json:"performanceKey"`
	PerformanceValue string            `json:"performanceValue"`
}

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 BenchmarkOperatorMeta struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace,omitempty"`
}

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 BenchmarkResultItem struct {
	Repetition       string `json:"run"`
	JobName          string `json:"job"`
	PodName          string `json:"pod"`
	PerformanceKey   string `json:"performanceKey"`
	PerformanceValue string `json:"performanceValue"`
	Result           string `json:"parseResult"`
	PushedTime       string `json:"pushedTime"`
}

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 DeploymentSpec struct {
	Namespace string   `json:"namespace,omitempty"`
	YAML      YAMLSpec `json:"yaml,omitempty"`
	Helm      HelmSpec `json:"helm,omitempty"`
}

type HelmSpec

type HelmSpec struct {
	Entity     string `json:"entity"`
	Release    string `json:"release,omitempty"`
	RepoName   string `json:"repoName"`
	URL        string `json:"url"`
	Username   string `json:"user,omitempty"`
	Password   string `json:"password,omitempty"`
	ValuesYaml string `json:"valuesYaml,omitempty"`
}

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"`
}

type YAMLSpec

type YAMLSpec struct {
	Host  string   `json:"host"`
	Paths []string `json:"paths,omitempty"`
}

Jump to

Keyboard shortcuts

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