v1beta1

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the waofed v1beta1 API group +kubebuilder:object:generate=true +groupName=waofed.bitmedia.co.jp

Index

Constants

View Source
const (
	OperatorName = "wao-estimator"

	DefaultNodeMonitorRefreshInterval = 30 * time.Second
)
View Source
const (
	NodeMonitorTypeNone         = "None"
	NodeMonitorTypeFake         = "Fake"
	NodeMonitorTypeIPMIExporter = "IPMIExporter"
	NodeMonitorTypeRedfish      = "Redfish"
)
View Source
const (
	PowerConsumptionPredictorTypeNone      = "None"
	PowerConsumptionPredictorTypeFake      = "Fake"
	PowerConsumptionPredictorTypeMLServer  = "MLServer"
	PowerConsumptionPredictorTypeTFServing = "TFServing"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "waofed.bitmedia.co.jp", Version: "v1beta1"}

	// 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 Estimator

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

	Spec   EstimatorSpec   `json:"spec,omitempty"`
	Status EstimatorStatus `json:"status,omitempty"`
}

Estimator is the Schema for the estimators API

func (*Estimator) DeepCopy

func (in *Estimator) DeepCopy() *Estimator

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

func (*Estimator) DeepCopyInto

func (in *Estimator) DeepCopyInto(out *Estimator)

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

func (*Estimator) DeepCopyObject

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

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

func (*Estimator) Default

func (r *Estimator) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*Estimator) SetupWebhookWithManager

func (r *Estimator) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Estimator) ValidateCreate

func (r *Estimator) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Estimator) ValidateDelete

func (r *Estimator) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Estimator) ValidateUpdate

func (r *Estimator) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type EstimatorList

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

EstimatorList contains a list of Estimator

func (*EstimatorList) DeepCopy

func (in *EstimatorList) DeepCopy() *EstimatorList

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

func (*EstimatorList) DeepCopyInto

func (in *EstimatorList) DeepCopyInto(out *EstimatorList)

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

func (*EstimatorList) DeepCopyObject

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

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

type EstimatorSpec

type EstimatorSpec struct {
	NodeMonitor               *NodeMonitor               `json:"nodeMonitor,omitempty"`
	PowerConsumptionPredictor *PowerConsumptionPredictor `json:"powerConsumptionPredictor,omitempty"`
}

EstimatorSpec defines the desired state of Estimator

func (*EstimatorSpec) DeepCopy

func (in *EstimatorSpec) DeepCopy() *EstimatorSpec

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

func (*EstimatorSpec) DeepCopyInto

func (in *EstimatorSpec) DeepCopyInto(out *EstimatorSpec)

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

type EstimatorStatus

type EstimatorStatus struct {
}

EstimatorStatus defines the observed state of Estimator

func (*EstimatorStatus) DeepCopy

func (in *EstimatorStatus) DeepCopy() *EstimatorStatus

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

func (*EstimatorStatus) DeepCopyInto

func (in *EstimatorStatus) DeepCopyInto(out *EstimatorStatus)

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

type Field

type Field struct {
	Default  string    `json:"default"`
	Override *FieldRef `json:"override,omitempty"`
}

func (*Field) DeepCopy

func (in *Field) DeepCopy() *Field

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

func (*Field) DeepCopyInto

func (in *Field) DeepCopyInto(out *Field)

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

type FieldRef

type FieldRef struct {
	Label *string `json:"label,omitempty"`
}

func (*FieldRef) DeepCopy

func (in *FieldRef) DeepCopy() *FieldRef

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

func (*FieldRef) DeepCopyInto

func (in *FieldRef) DeepCopyInto(out *FieldRef)

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

type IPMIExporter

type IPMIExporter struct {
	Endpoint Field `json:"endpoint"`
}

func (*IPMIExporter) DeepCopy

func (in *IPMIExporter) DeepCopy() *IPMIExporter

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

func (*IPMIExporter) DeepCopyInto

func (in *IPMIExporter) DeepCopyInto(out *IPMIExporter)

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

type MLServer

type MLServer struct {
	Endpoint Field `json:"endpoint"`
}

func (*MLServer) DeepCopy

func (in *MLServer) DeepCopy() *MLServer

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

func (*MLServer) DeepCopyInto

func (in *MLServer) DeepCopyInto(out *MLServer)

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

type NodeMonitor

type NodeMonitor struct {
	Type            Field            `json:"type"`
	RefreshInterval *metav1.Duration `json:"refreshInterval,omitempty"`
	IPMIExporter    *IPMIExporter    `json:"ipmiExporter,omitempty"`
	Redfish         *Redfish         `json:"redfish,omitempty"`
}

func (*NodeMonitor) DeepCopy

func (in *NodeMonitor) DeepCopy() *NodeMonitor

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

func (*NodeMonitor) DeepCopyInto

func (in *NodeMonitor) DeepCopyInto(out *NodeMonitor)

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

type NodeMonitorType

type NodeMonitorType string

type PowerConsumptionPredictor

type PowerConsumptionPredictor struct {
	Type     Field     `json:"type"`
	MLServer *MLServer `json:"mlServer,omitempty"`
}

func (*PowerConsumptionPredictor) DeepCopy

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

func (*PowerConsumptionPredictor) DeepCopyInto

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

type PowerConsumptionPredictorType

type PowerConsumptionPredictorType string

type Redfish

type Redfish struct {
	Endpoint Field `json:"endpoint"`
}

func (*Redfish) DeepCopy

func (in *Redfish) DeepCopy() *Redfish

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

func (*Redfish) DeepCopyInto

func (in *Redfish) DeepCopyInto(out *Redfish)

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