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 ¶
func NamespacedNameToString ¶
func NamespacedNameToString(resource *types.NamespacedName) string
NamespacedNameToString converts a NamespacedName to a string.
func StringToNamespacedName ¶
func StringToNamespacedName(resource string) types.NamespacedName
StringToNamespacedName converts a string to a NamespacedName.
Types ¶
type EvacuationPlan ¶
type EvacuationPlan struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec EvacuationPlanSpec `json:"spec,omitempty"` Status EvacuationPlanStatus `json:"status,omitempty"` }
EvacuationPlan is the Schema for the evacuationplan API.
func (*EvacuationPlan) DeepCopy ¶
func (in *EvacuationPlan) DeepCopy() *EvacuationPlan
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EvacuationPlan.
func (*EvacuationPlan) DeepCopyInto ¶
func (in *EvacuationPlan) DeepCopyInto(out *EvacuationPlan)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EvacuationPlan) DeepCopyObject ¶
func (in *EvacuationPlan) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type EvacuationPlanList ¶
type EvacuationPlanList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []EvacuationPlan `json:"items"` }
EvacuationPlanList contains a list of EvacuationPlan.
func (*EvacuationPlanList) DeepCopy ¶
func (in *EvacuationPlanList) DeepCopy() *EvacuationPlanList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EvacuationPlanList.
func (*EvacuationPlanList) DeepCopyInto ¶
func (in *EvacuationPlanList) DeepCopyInto(out *EvacuationPlanList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EvacuationPlanList) DeepCopyObject ¶
func (in *EvacuationPlanList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type EvacuationPlanPhase ¶
type EvacuationPlanPhase string
EvacuationPlanPhase represents the phase of the evacuation plan.
const ( // EvacuationPlanPhasePending is the phase when the plan is created and not yet processed. EvacuationPlanPhasePending EvacuationPlanPhase = "Pending" // EvacuationPlanPhaseInProgress is the phase when the plan is being processed. EvacuationPlanPhaseInProgress EvacuationPlanPhase = "InProgress" // EvacuationPlanPhaseCompleted is the phase when the plan is completed. EvacuationPlanPhaseCompleted EvacuationPlanPhase = "Completed" )
type EvacuationPlanSpec ¶
type EvacuationPlanSpec struct { // SequentialJuggle is a map of workload (namespaced name) -> instance-name to be evacuated sequentially in appearing order. SequentialJuggleMap map[string]string `json:"sequential-juggle-map,omitempty"` }
EvacuationPlanSpec defines the desired state of EvacuationPlan.
func (*EvacuationPlanSpec) DeepCopy ¶
func (in *EvacuationPlanSpec) DeepCopy() *EvacuationPlanSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EvacuationPlanSpec.
func (*EvacuationPlanSpec) DeepCopyInto ¶
func (in *EvacuationPlanSpec) DeepCopyInto(out *EvacuationPlanSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EvacuationPlanStatus ¶
type EvacuationPlanStatus struct { // Phase is the current phase of the evacuation plan. Phase EvacuationPlanPhase `json:"phase,omitempty"` }
EvacuationPlanStatus defines the observed state of EvacuationPlan.
func (*EvacuationPlanStatus) DeepCopy ¶
func (in *EvacuationPlanStatus) DeepCopy() *EvacuationPlanStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EvacuationPlanStatus.
func (*EvacuationPlanStatus) DeepCopyInto ¶
func (in *EvacuationPlanStatus) DeepCopyInto(out *EvacuationPlanStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.