Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the golem v1alpha1 API group +kubebuilder:object:generate=true +groupName=golem.spot-os.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "golem.spot-os.io", Version: "v1alpha1"} // 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 SpotInstance ¶
type SpotInstance struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SpotInstanceSpec `json:"spec,omitempty"` Status SpotInstanceStatus `json:"status,omitempty"` }
SpotInstance is the Schema for the spotinstances API.
func (*SpotInstance) DeepCopy ¶
func (in *SpotInstance) DeepCopy() *SpotInstance
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpotInstance.
func (*SpotInstance) DeepCopyInto ¶
func (in *SpotInstance) DeepCopyInto(out *SpotInstance)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SpotInstance) DeepCopyObject ¶
func (in *SpotInstance) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SpotInstanceList ¶
type SpotInstanceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []SpotInstance `json:"items"` }
SpotInstanceList contains a list of SpotInstance.
func (*SpotInstanceList) DeepCopy ¶
func (in *SpotInstanceList) DeepCopy() *SpotInstanceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpotInstanceList.
func (*SpotInstanceList) DeepCopyInto ¶
func (in *SpotInstanceList) DeepCopyInto(out *SpotInstanceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SpotInstanceList) DeepCopyObject ¶
func (in *SpotInstanceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SpotInstanceSpec ¶
type SpotInstanceSpec struct { // Region is the region of the instance. Region string `json:"region,omitempty"` // CPU is the number of CPU cores in the instance. CPU int32 `json:"cpu,omitempty"` // Memory is the amount of memory in the instance. Memory int32 `json:"memory,omitempty"` // TypeName is the type of the instance. TypeName string `json:"typeName,omitempty"` // TypeMajor is the major type of the instance. TypeMajor string `json:"typeMajor,omitempty"` // TypeMinor is the minor type of the instance. TypeMinor string `json:"typeMinor,omitempty"` // Storage is the storage of the instance. Storage string `json:"storage,omitempty"` }
SpotInstanceSpec defines the desired state of SpotInstance.
func (*SpotInstanceSpec) DeepCopy ¶
func (in *SpotInstanceSpec) DeepCopy() *SpotInstanceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpotInstanceSpec.
func (*SpotInstanceSpec) DeepCopyInto ¶
func (in *SpotInstanceSpec) DeepCopyInto(out *SpotInstanceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SpotInstanceStatus ¶
type SpotInstanceStatus struct { // Stage is the stage of the lifecycle of the instance Stage string `json:"stage,omitempty" enum:"pending-order|ordered|ready|installed"` // NodeName is the name of the node assigned to the instance NodeName string `json:"node-name,omitempty"` }
SpotInstanceStatus defines the observed state of SpotInstance.
func (*SpotInstanceStatus) DeepCopy ¶
func (in *SpotInstanceStatus) DeepCopy() *SpotInstanceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpotInstanceStatus.
func (*SpotInstanceStatus) DeepCopyInto ¶
func (in *SpotInstanceStatus) DeepCopyInto(out *SpotInstanceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.