Documentation
¶
Overview ¶
+kubebuilder:object:generate=true
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FixedPeriod ¶ added in v1.0.3
type FixedPeriod struct { // +kubebuilder:validation:Pattern=`^\d{4}-(0?[1-9]|1[0,1,2])-(0?[1-9]|[12][0-9]|3[01]) ([0-1]?[0-9]|2[0-3]):[0-5]?[0-9]:[0-5]?[0-9]$` StartTime string `json:"startTime"` // +kubebuilder:validation:Pattern=`^\d{4}-(0?[1-9]|1[0,1,2])-(0?[1-9]|[12][0-9]|3[01]) ([0-1]?[0-9]|2[0-3]):[0-5]?[0-9]:[0-5]?[0-9]$` EndTime string `json:"endTime"` Timezone *string `json:"timezone,omitempty"` // Run once at StartTime Once *bool `json:"once,omitempty"` // Grace period in seconds for deployments before scaling down GracePeriod *time.Duration `json:"gracePeriod,omitempty"` // Reverse the period Reverse *bool `json:"reverse,omitempty"` }
func (*FixedPeriod) DeepCopy ¶ added in v1.0.3
func (in *FixedPeriod) DeepCopy() *FixedPeriod
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FixedPeriod.
func (*FixedPeriod) DeepCopyInto ¶ added in v1.0.3
func (in *FixedPeriod) DeepCopyInto(out *FixedPeriod)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RecurringPeriod ¶ added in v1.0.3
type RecurringPeriod struct { Days []string `json:"days"` // +kubebuilder:validation:Pattern=`^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$` StartTime string `json:"startTime"` // +kubebuilder:validation:Pattern=`^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$` EndTime string `json:"endTime"` Timezone *string `json:"timezone,omitempty"` // Run once at StartTime Once *bool `json:"once,omitempty"` // Grace period in seconds for deployments before scaling down GracePeriod *time.Duration `json:"gracePeriod,omitempty"` // Reverse the period Reverse *bool `json:"reverse,omitempty"` }
func (*RecurringPeriod) DeepCopy ¶ added in v1.0.3
func (in *RecurringPeriod) DeepCopy() *RecurringPeriod
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RecurringPeriod.
func (*RecurringPeriod) DeepCopyInto ¶ added in v1.0.3
func (in *RecurringPeriod) DeepCopyInto(out *RecurringPeriod)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScalerPeriod ¶
type ScalerPeriod struct { // +kubebuilder:validation:Enum=down;nominal;up;restore Type string `json:"type"` Time TimePeriod `json:"time"` // Minimum replicas MinReplicas *int32 `json:"minReplicas,omitempty"` // Maximum replicas MaxReplicas *int32 `json:"maxReplicas,omitempty"` }
func (*ScalerPeriod) DeepCopy ¶
func (in *ScalerPeriod) DeepCopy() *ScalerPeriod
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScalerPeriod.
func (*ScalerPeriod) DeepCopyInto ¶
func (in *ScalerPeriod) DeepCopyInto(out *ScalerPeriod)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScalerStatus ¶
type ScalerStatus struct { CurrentPeriod *ScalerStatusPeriod `json:"currentPeriod,omitempty"` Comments *string `json:"comments,omitempty"` }
ScalerStatus defines the observed state of Scaler
func (*ScalerStatus) DeepCopy ¶
func (in *ScalerStatus) DeepCopy() *ScalerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScalerStatus.
func (*ScalerStatus) DeepCopyInto ¶
func (in *ScalerStatus) DeepCopyInto(out *ScalerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScalerStatusFailed ¶
type ScalerStatusFailed struct { Kind string `json:"kind"` Name string `json:"name"` Reason string `json:"reason"` }
func (*ScalerStatusFailed) DeepCopy ¶
func (in *ScalerStatusFailed) DeepCopy() *ScalerStatusFailed
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScalerStatusFailed.
func (*ScalerStatusFailed) DeepCopyInto ¶
func (in *ScalerStatusFailed) DeepCopyInto(out *ScalerStatusFailed)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScalerStatusPeriod ¶
type ScalerStatusPeriod struct { Spec *RecurringPeriod `json:"spec"` SpecSHA string `json:"specSHA"` Successful []ScalerStatusSuccess `json:"success,omitempty"` Failed []ScalerStatusFailed `json:"failed,omitempty"` }
func (*ScalerStatusPeriod) DeepCopy ¶
func (in *ScalerStatusPeriod) DeepCopy() *ScalerStatusPeriod
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScalerStatusPeriod.
func (*ScalerStatusPeriod) DeepCopyInto ¶
func (in *ScalerStatusPeriod) DeepCopyInto(out *ScalerStatusPeriod)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScalerStatusSuccess ¶
func (*ScalerStatusSuccess) DeepCopy ¶
func (in *ScalerStatusSuccess) DeepCopy() *ScalerStatusSuccess
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScalerStatusSuccess.
func (*ScalerStatusSuccess) DeepCopyInto ¶
func (in *ScalerStatusSuccess) DeepCopyInto(out *ScalerStatusSuccess)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TimePeriod ¶
type TimePeriod struct { Recurring *RecurringPeriod `json:"recurring,omitempty"` Fixed *FixedPeriod `json:"fixed,omitempty"` }
func (*TimePeriod) DeepCopy ¶
func (in *TimePeriod) DeepCopy() *TimePeriod
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TimePeriod.
func (*TimePeriod) DeepCopyInto ¶
func (in *TimePeriod) DeepCopyInto(out *TimePeriod)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.