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
- Variables
- type Estimator
- func (in *Estimator) DeepCopy() *Estimator
- func (in *Estimator) DeepCopyInto(out *Estimator)
- func (in *Estimator) DeepCopyObject() runtime.Object
- func (r *Estimator) Default()
- func (r *Estimator) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Estimator) ValidateCreate() error
- func (r *Estimator) ValidateDelete() error
- func (r *Estimator) ValidateUpdate(old runtime.Object) error
- type EstimatorList
- type EstimatorSpec
- type EstimatorStatus
- type Field
- type FieldRef
- type IPMIExporter
- type MLServer
- type NodeMonitor
- type NodeMonitorType
- type PowerConsumptionPredictor
- type PowerConsumptionPredictorType
- type Redfish
Constants ¶
const ( OperatorName = "wao-estimator" DefaultNodeMonitorRefreshInterval = 30 * time.Second )
const ( NodeMonitorTypeNone = "None" NodeMonitorTypeFake = "Fake" NodeMonitorTypeIPMIExporter = "IPMIExporter" NodeMonitorTypeRedfish = "Redfish" )
const ( PowerConsumptionPredictorTypeNone = "None" PowerConsumptionPredictorTypeFake = "Fake" PowerConsumptionPredictorTypeMLServer = "MLServer" PowerConsumptionPredictorTypeTFServing = "TFServing" )
Variables ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Estimator.
func (*Estimator) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Estimator) DeepCopyObject ¶
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 (*Estimator) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Estimator) ValidateDelete ¶
ValidateDelete 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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Field.
func (*Field) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FieldRef.
func (*FieldRef) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MLServer.
func (*MLServer) DeepCopyInto ¶
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 ¶
func (in *PowerConsumptionPredictor) DeepCopy() *PowerConsumptionPredictor
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PowerConsumptionPredictor.
func (*PowerConsumptionPredictor) DeepCopyInto ¶
func (in *PowerConsumptionPredictor) DeepCopyInto(out *PowerConsumptionPredictor)
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Redfish.
func (*Redfish) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.