Documentation
¶
Overview ¶
+kubebuilder:object:generate=true
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 *ScalerPeriod `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 {
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 int `json:"gracePeriod,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.