Documentation ¶
Overview ¶
Package v1 is the v1 version of the API. +groupName=cronhpacontroller.gs.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: cronhpacontroller.GroupName, Version: "v1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Cron ¶
type Cron struct { // The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. Schedule string `json:"schedule" protobuf:"bytes,1,opt,name=schedule"` TargetReplicas int32 `json:"targetReplicas" protobuf:"varint,2,opt,name=targetReplicas"` }
func (*Cron) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cron.
func (*Cron) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CronHPA ¶
type CronHPA struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // Spec defines the desired identities of pods in this cronhpa. Spec CronHPASpec `json:"spec,omitempty"` // Status is the current status of pods in this CronHPA. This data // may be out of date by some window of time. Status CronHPAStatus `json:"status,omitempty"` }
CronHPA represents a set of crontabs to set target's replicas.
func (*CronHPA) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CronHPA.
func (*CronHPA) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CronHPA) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CronHPAList ¶
type CronHPAList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CronHPA `json:"items"` }
CronHPAList is a collection of CronHPA.
func (*CronHPAList) DeepCopy ¶
func (in *CronHPAList) DeepCopy() *CronHPAList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CronHPAList.
func (*CronHPAList) DeepCopyInto ¶
func (in *CronHPAList) DeepCopyInto(out *CronHPAList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CronHPAList) DeepCopyObject ¶
func (in *CronHPAList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CronHPASpec ¶
type CronHPASpec struct { // scaleTargetRef points to the target resource to scale ScaleTargetRef autoscalingv2.CrossVersionObjectReference `json:"scaleTargetRef" protobuf:"bytes,1,opt,name=scaleTargetRef"` Crons []Cron `json:"crons" protobuf:"bytes,2,opt,name=crons"` }
A CronHPASpec is the specification of a CronHPA.
func (*CronHPASpec) DeepCopy ¶
func (in *CronHPASpec) DeepCopy() *CronHPASpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CronHPASpec.
func (*CronHPASpec) DeepCopyInto ¶
func (in *CronHPASpec) DeepCopyInto(out *CronHPASpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CronHPAStatus ¶
type CronHPAStatus struct { // Information when was the last time the schedule was successfully scheduled. // +optional LastScheduleTime *metav1.Time `json:"lastScheduleTime,omitempty" protobuf:"bytes,2,opt,name=lastScheduleTime"` }
CronHPAStatus represents the current state of a CronHPA.
func (*CronHPAStatus) DeepCopy ¶
func (in *CronHPAStatus) DeepCopy() *CronHPAStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CronHPAStatus.
func (*CronHPAStatus) DeepCopyInto ¶
func (in *CronHPAStatus) DeepCopyInto(out *CronHPAStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.