Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the core v1alpha1 API group +kubebuilder:object:generate=true +groupName=core.rekuberate.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "core.rekuberate.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 SleepCycle ¶
type SleepCycle struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SleepCycleSpec `json:"spec,omitempty"` Status SleepCycleStatus `json:"status,omitempty"` }
SleepCycle is the Schema for the sleepcycles API +kubebuilder:printcolumn:name="Shutdown Schedule",type=string,JSONPath=`.spec.shutdown` +kubebuilder:printcolumn:name="Shutdown Timezone",type=string,JSONPath=`.spec.shutdownTimeZone` +kubebuilder:printcolumn:name="Wakeup Schedule",type=string,JSONPath=`.spec.wakeup` +kubebuilder:printcolumn:name="Wakeup Timezone",type=string,JSONPath=`.spec.wakeupTimeZone` +kubebuilder:printcolumn:name="Enabled",type=boolean,JSONPath=`.spec.enabled` +kubebuilder:printcolumn:name="Success",type=boolean,JSONPath=`.status.lastRunWasSuccessful` +kubebuilder:printcolumn:name="Last Op",type=string,JSONPath=`.status.lastRunOperation`
func (*SleepCycle) DeepCopy ¶
func (in *SleepCycle) DeepCopy() *SleepCycle
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SleepCycle.
func (*SleepCycle) DeepCopyInto ¶
func (in *SleepCycle) DeepCopyInto(out *SleepCycle)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SleepCycle) DeepCopyObject ¶
func (in *SleepCycle) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SleepCycleList ¶
type SleepCycleList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []SleepCycle `json:"items"` }
SleepCycleList contains a list of SleepCycle
func (*SleepCycleList) DeepCopy ¶
func (in *SleepCycleList) DeepCopy() *SleepCycleList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SleepCycleList.
func (*SleepCycleList) DeepCopyInto ¶
func (in *SleepCycleList) DeepCopyInto(out *SleepCycleList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SleepCycleList) DeepCopyObject ¶
func (in *SleepCycleList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SleepCycleSpec ¶
type SleepCycleSpec struct { // +kubebuilder:validation:Pattern:=`(^((\*\/)?([0-5]?[0-9])((\,|\-|\/)([0-5]?[0-9]))*|\*)\s+((\*\/)?((2[0-3]|1[0-9]|[0-9]|00))((\,|\-|\/)(2[0-3]|1[0-9]|[0-9]|00))*|\*)\s+((\*\/)?([1-9]|[12][0-9]|3[01])((\,|\-|\/)([1-9]|[12][0-9]|3[01]))*|\*)\s+((\*\/)?([1-9]|1[0-2])((\,|\-|\/)([1-9]|1[0-2]))*|\*|(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|des))\s+((\*\/)?[0-6]((\,|\-|\/)[0-6])*|\*|00|(sun|mon|tue|wed|thu|fri|sat))\s*$)|@(annually|yearly|monthly|weekly|daily|hourly|reboot)` // +kubebuilder:validation:Type=string Shutdown string `json:"shutdown"` // +kubebuilder:validation:Optional // +kubebuilder:default:="UTC" ShutdownTimeZone *string `json:"shutdownTimeZone,omitempty"` // +kubebuilder:validation:Pattern:=`(^((\*\/)?([0-5]?[0-9])((\,|\-|\/)([0-5]?[0-9]))*|\*)\s+((\*\/)?((2[0-3]|1[0-9]|[0-9]|00))((\,|\-|\/)(2[0-3]|1[0-9]|[0-9]|00))*|\*)\s+((\*\/)?([1-9]|[12][0-9]|3[01])((\,|\-|\/)([1-9]|[12][0-9]|3[01]))*|\*)\s+((\*\/)?([1-9]|1[0-2])((\,|\-|\/)([1-9]|1[0-2]))*|\*|(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|des))\s+((\*\/)?[0-6]((\,|\-|\/)[0-6])*|\*|00|(sun|mon|tue|wed|thu|fri|sat))\s*$)|@(annually|yearly|monthly|weekly|daily|hourly|reboot)` // +kubebuilder:validation:Type=string WakeUp string `json:"wakeup,omitempty"` // +kubebuilder:validation:Optional // +kubebuilder:default:="UTC" WakeupTimeZone *string `json:"wakeupTimeZone,omitempty"` // +kubebuilder:validation:default:=true // +kubebuilder:validation:Type=boolean Enabled bool `json:"enabled"` }
SleepCycleSpec defines the desired state of SleepCycle
func (*SleepCycleSpec) DeepCopy ¶
func (in *SleepCycleSpec) DeepCopy() *SleepCycleSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SleepCycleSpec.
func (*SleepCycleSpec) DeepCopyInto ¶
func (in *SleepCycleSpec) DeepCopyInto(out *SleepCycleSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SleepCycleStatus ¶
type SleepCycleStatus struct { UsedBy map[string]int `json:"usedBy,omitempty"` Enabled bool `json:"enabled,omitempty"` NextScheduledShutdownTime *metav1.Time `json:"nextScheduledShutdown,omitempty"` NextScheduledWakeupTime *metav1.Time `json:"nextScheduledWakeUp,omitempty"` NextScheduledOp string `json:"nextScheduledOp,omitempty"` LastRunTime *metav1.Time `json:"lastRunTime,omitempty"` LastRunOperation string `json:"lastRunOperation,omitempty"` LastRunWasSuccessful bool `json:"lastRunWasSuccessful,omitempty"` }
SleepCycleStatus defines the observed state of SleepCycle
func (*SleepCycleStatus) DeepCopy ¶
func (in *SleepCycleStatus) DeepCopy() *SleepCycleStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SleepCycleStatus.
func (*SleepCycleStatus) DeepCopyInto ¶
func (in *SleepCycleStatus) DeepCopyInto(out *SleepCycleStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.