Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the pod v1alpha1 API group +kubebuilder:object:generate=true +groupName=pod.loop.dev
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "pod.loop.dev", 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 ClusterSchedule ¶
type ClusterSchedule struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ClusterScheduleSpec `json:"spec,omitempty"` Status ClusterScheduleStatus `json:"status,omitempty"` }
ClusterSchedule is the Schema for the clusterschedules API
func (*ClusterSchedule) DeepCopy ¶
func (in *ClusterSchedule) DeepCopy() *ClusterSchedule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSchedule.
func (*ClusterSchedule) DeepCopyInto ¶
func (in *ClusterSchedule) DeepCopyInto(out *ClusterSchedule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterSchedule) DeepCopyObject ¶
func (in *ClusterSchedule) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterScheduleList ¶
type ClusterScheduleList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ClusterSchedule `json:"items"` }
ClusterScheduleList contains a list of ClusterSchedule
func (*ClusterScheduleList) DeepCopy ¶
func (in *ClusterScheduleList) DeepCopy() *ClusterScheduleList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterScheduleList.
func (*ClusterScheduleList) DeepCopyInto ¶
func (in *ClusterScheduleList) DeepCopyInto(out *ClusterScheduleList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterScheduleList) DeepCopyObject ¶
func (in *ClusterScheduleList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterScheduleSpec ¶
type ClusterScheduleSpec struct { // Foo is an example field of ClusterSchedule. Edit clusterschedule_types.go to remove/update MatchType ResourceType `json:"matchType"` MatchLabels map[string]string `json:"matchLabels"` Namespaces []string `json:"namespaces"` Schedules []ScheduleAction `json:"schedules"` Enabled *bool `json:"enabled,omitempty"` }
ClusterScheduleSpec defines the desired state of ClusterSchedule
func (*ClusterScheduleSpec) DeepCopy ¶
func (in *ClusterScheduleSpec) DeepCopy() *ClusterScheduleSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterScheduleSpec.
func (*ClusterScheduleSpec) DeepCopyInto ¶
func (in *ClusterScheduleSpec) DeepCopyInto(out *ClusterScheduleSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterScheduleStatus ¶
type ClusterScheduleStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "make" to regenerate code after modifying this file LastRunTime metav1.Time `json:"lastRunTime"` CronJobs []CronJob `json:"cronJobs"` }
ClusterScheduleStatus defines the observed state of ClusterSchedule
func (*ClusterScheduleStatus) DeepCopy ¶
func (in *ClusterScheduleStatus) DeepCopy() *ClusterScheduleStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterScheduleStatus.
func (*ClusterScheduleStatus) DeepCopyInto ¶
func (in *ClusterScheduleStatus) DeepCopyInto(out *ClusterScheduleStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CronJob ¶
type CronJob struct { Name string `json:"name"` Job string `json:"job"` ConfigMap string `json:"configMap"` }
func (*CronJob) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CronJob.
func (*CronJob) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceType ¶
type ResourceType string
const ( Deployment ResourceType = "Deployment" StatefulSet ResourceType = "StatefulSet" HorizontalPodAutoscaler ResourceType = "HorizontalPodAutoscaler" )
func (ResourceType) String ¶
func (r ResourceType) String() string
type Schedule ¶
type Schedule struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ScheduleSpec `json:"spec,omitempty"` Status ScheduleStatus `json:"status,omitempty"` }
Schedule is the Schema for the schedules API
func (*Schedule) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Schedule.
func (*Schedule) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Schedule) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ScheduleAction ¶
type ScheduleAction struct { Name string `json:"name"` Cron string `json:"cron"` Replicas int `json:"replicas,omitempty"` MinReplicas int `json:"minReplicas,omitempty"` MaxReplicas int `json:"maxReplicas,omitempty"` Enabled *bool `json:"enabled,omitempty"` }
func (*ScheduleAction) DeepCopy ¶
func (in *ScheduleAction) DeepCopy() *ScheduleAction
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScheduleAction.
func (*ScheduleAction) DeepCopyInto ¶
func (in *ScheduleAction) DeepCopyInto(out *ScheduleAction)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScheduleList ¶
type ScheduleList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Schedule `json:"items"` }
ScheduleList contains a list of Schedule
func (*ScheduleList) DeepCopy ¶
func (in *ScheduleList) DeepCopy() *ScheduleList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScheduleList.
func (*ScheduleList) DeepCopyInto ¶
func (in *ScheduleList) DeepCopyInto(out *ScheduleList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ScheduleList) DeepCopyObject ¶
func (in *ScheduleList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ScheduleSpec ¶
type ScheduleSpec struct { // Foo is an example field of Schedule. Edit schedule_types.go to remove/update MatchType ResourceType `json:"matchType"` MatchLabels map[string]string `json:"matchLabels"` Schedules []ScheduleAction `json:"schedules"` Enabled *bool `json:"enabled,omitempty"` }
ScheduleSpec defines the desired state of Schedule
func (*ScheduleSpec) DeepCopy ¶
func (in *ScheduleSpec) DeepCopy() *ScheduleSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScheduleSpec.
func (*ScheduleSpec) DeepCopyInto ¶
func (in *ScheduleSpec) DeepCopyInto(out *ScheduleSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScheduleStatus ¶
type ScheduleStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "make" to regenerate code after modifying this file LastRunTime metav1.Time `json:"lastRunTime"` CronJobs []CronJob `json:"cronJobs"` }
ScheduleStatus defines the observed state of Schedule
func (*ScheduleStatus) DeepCopy ¶
func (in *ScheduleStatus) DeepCopy() *ScheduleStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScheduleStatus.
func (*ScheduleStatus) DeepCopyInto ¶
func (in *ScheduleStatus) DeepCopyInto(out *ScheduleStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.