Documentation
¶
Overview ¶
Package v1 contains API Schema definitions for the scheduledscaling v1 API group +kubebuilder:object:generate=true +groupName=scheduledscaling.int128.github.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "scheduledscaling.int128.github.io", Version: "v1"} // 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 DailyRule ¶
type DailyRule struct { // Time format in 00:00:00. // If EndTime < StartTime, it treats the EndTime as the next day. StartTime string `json:"startTime,omitempty"` EndTime string `json:"endTime,omitempty"` }
DailyRule represents a rule to apply everyday.
func (*DailyRule) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DailyRule.
func (*DailyRule) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScaleRule ¶
type ScaleRule struct { ScaleSpec ScaleSpec `json:"spec,omitempty"` // Timezone, default to UTC. // +optional Timezone string `json:"timezone,omitempty"` // +optional Daily *DailyRule `json:"daily,omitempty"` }
ScaleRule represents a rule of scaling schedule.
func (*ScaleRule) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScaleRule.
func (*ScaleRule) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScaleSpec ¶
type ScaleSpec struct {
Replicas int32 `json:"replicas,omitempty"`
}
ScaleSpec represents the desired state to scale the resource.
func (*ScaleSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScaleSpec.
func (*ScaleSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScaleTarget ¶
ScaleTarget represents the resource to scale. For now only Deployment is supported.
func (*ScaleTarget) DeepCopy ¶
func (in *ScaleTarget) DeepCopy() *ScaleTarget
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScaleTarget.
func (*ScaleTarget) DeepCopyInto ¶
func (in *ScaleTarget) DeepCopyInto(out *ScaleTarget)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScheduledPodScaler ¶
type ScheduledPodScaler struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ScheduledPodScalerSpec `json:"spec,omitempty"` Status ScheduledPodScalerStatus `json:"status,omitempty"` }
ScheduledPodScaler is the Schema for the scheduledpodscalers API
func (*ScheduledPodScaler) DeepCopy ¶
func (in *ScheduledPodScaler) DeepCopy() *ScheduledPodScaler
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScheduledPodScaler.
func (*ScheduledPodScaler) DeepCopyInto ¶
func (in *ScheduledPodScaler) DeepCopyInto(out *ScheduledPodScaler)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ScheduledPodScaler) DeepCopyObject ¶
func (in *ScheduledPodScaler) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ScheduledPodScalerList ¶
type ScheduledPodScalerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ScheduledPodScaler `json:"items"` }
ScheduledPodScalerList contains a list of ScheduledPodScaler
func (*ScheduledPodScalerList) DeepCopy ¶
func (in *ScheduledPodScalerList) DeepCopy() *ScheduledPodScalerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScheduledPodScalerList.
func (*ScheduledPodScalerList) DeepCopyInto ¶
func (in *ScheduledPodScalerList) DeepCopyInto(out *ScheduledPodScalerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ScheduledPodScalerList) DeepCopyObject ¶
func (in *ScheduledPodScalerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ScheduledPodScalerSpec ¶
type ScheduledPodScalerSpec struct { ScaleTarget ScaleTarget `json:"scaleTarget,omitempty"` ScaleRules []ScaleRule `json:"schedule,omitempty"` DefaultScaleSpec ScaleSpec `json:"default,omitempty"` }
ScheduledPodScalerSpec defines the desired state of ScheduledPodScaler
func (*ScheduledPodScalerSpec) DeepCopy ¶
func (in *ScheduledPodScalerSpec) DeepCopy() *ScheduledPodScalerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScheduledPodScalerSpec.
func (*ScheduledPodScalerSpec) DeepCopyInto ¶
func (in *ScheduledPodScalerSpec) DeepCopyInto(out *ScheduledPodScalerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScheduledPodScalerStatus ¶
type ScheduledPodScalerStatus struct {
NextReconcileTime string `json:"nextReconcileTime,omitempty"`
}
ScheduledPodScalerStatus defines the observed state of ScheduledPodScaler
func (*ScheduledPodScalerStatus) DeepCopy ¶
func (in *ScheduledPodScalerStatus) DeepCopy() *ScheduledPodScalerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScheduledPodScalerStatus.
func (*ScheduledPodScalerStatus) DeepCopyInto ¶
func (in *ScheduledPodScalerStatus) DeepCopyInto(out *ScheduledPodScalerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.