Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the constraint v1alpha1 API group +kubebuilder:object:generate=true +groupName=planner.ciena.io +kubebuilder:validation:Required
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: "planner.ciena.io", Version: "v1alpha1"} // SchemeGroupVersion is an alias for genclient that uses SchemeGroupVersion while initializing the rest client. SchemeGroupVersion = GroupVersion // 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 )
nolint: gochecknoglobals
Functions ¶
This section is empty.
Types ¶
type PlanSpec ¶
type PlanSpec struct { // +kubebuilder:validation:Required Pod string `json:"pod"` // +kubebuilder:validation:Required Node string `json:"node"` }
PlanSpec defines a plan spec for pod to node assignments for a pod-set.
func (*PlanSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlanSpec.
func (*PlanSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SchedulePlan ¶
type SchedulePlan struct { //nolint: tagliatelle metav1.TypeMeta `json:",inline"` //nolint: tagliatelle metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:validation:Required Spec SchedulePlanSpec `json:"spec"` // +optional Status SchedulePlanStatus `json:"status"` }
SchedulePlan is the Schema for the schedulePlan api +genclient.
func (*SchedulePlan) DeepCopy ¶
func (in *SchedulePlan) DeepCopy() *SchedulePlan
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SchedulePlan.
func (*SchedulePlan) DeepCopyInto ¶
func (in *SchedulePlan) DeepCopyInto(out *SchedulePlan)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SchedulePlan) DeepCopyObject ¶
func (in *SchedulePlan) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SchedulePlanList ¶
type SchedulePlanList struct { //nolint: tagliatelle metav1.TypeMeta `json:",inline"` //nolint: tagliatelle metav1.ListMeta `json:"metadata,omitempty"` Items []SchedulePlan `json:"items"` }
SchedulePlanList contains a list of schedule plans.
func (*SchedulePlanList) DeepCopy ¶
func (in *SchedulePlanList) DeepCopy() *SchedulePlanList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SchedulePlanList.
func (*SchedulePlanList) DeepCopyInto ¶
func (in *SchedulePlanList) DeepCopyInto(out *SchedulePlanList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SchedulePlanList) DeepCopyObject ¶
func (in *SchedulePlanList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SchedulePlanSpec ¶
type SchedulePlanSpec struct { // +kubebuilder:validation:Required Plan []PlanSpec `json:"plan"` }
SchedulePlanSpec defines a plan for a pod-set containing the pod to node assignments.
func (*SchedulePlanSpec) DeepCopy ¶
func (in *SchedulePlanSpec) DeepCopy() *SchedulePlanSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SchedulePlanSpec.
func (*SchedulePlanSpec) DeepCopyInto ¶
func (in *SchedulePlanSpec) DeepCopyInto(out *SchedulePlanSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SchedulePlanStatus ¶
type SchedulePlanStatus struct{}
SchedulePlanStatus defines the plan status for a pod-set.
func (*SchedulePlanStatus) DeepCopy ¶
func (in *SchedulePlanStatus) DeepCopy() *SchedulePlanStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SchedulePlanStatus.
func (*SchedulePlanStatus) DeepCopyInto ¶
func (in *SchedulePlanStatus) DeepCopyInto(out *SchedulePlanStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScheduleTrigger ¶
type ScheduleTrigger struct { //nolint: tagliatelle metav1.TypeMeta `json:",inline"` //nolint: tagliatelle metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:validation:Required Spec ScheduleTriggerSpec `json:"spec"` // +optional Status ScheduleTriggerStatus `json:"status"` }
ScheduleTrigger is the Schema for the scheduleTrigger api +genclient.
func (*ScheduleTrigger) DeepCopy ¶
func (in *ScheduleTrigger) DeepCopy() *ScheduleTrigger
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScheduleTrigger.
func (*ScheduleTrigger) DeepCopyInto ¶
func (in *ScheduleTrigger) DeepCopyInto(out *ScheduleTrigger)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ScheduleTrigger) DeepCopyObject ¶
func (in *ScheduleTrigger) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ScheduleTriggerList ¶
type ScheduleTriggerList struct { //nolint: tagliatelle metav1.TypeMeta `json:",inline"` //nolint: tagliatelle metav1.ListMeta `json:"metadata,omitempty"` Items []ScheduleTrigger `json:"items"` }
ScheduleTriggerList contains a list of schedule triggers.
func (*ScheduleTriggerList) DeepCopy ¶
func (in *ScheduleTriggerList) DeepCopy() *ScheduleTriggerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScheduleTriggerList.
func (*ScheduleTriggerList) DeepCopyInto ¶
func (in *ScheduleTriggerList) DeepCopyInto(out *ScheduleTriggerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ScheduleTriggerList) DeepCopyObject ¶
func (in *ScheduleTriggerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ScheduleTriggerSpec ¶
type ScheduleTriggerSpec struct { // +kubebuilder:validation:Required // +kubebuilder:validation:Enum=Planning;Schedule State string `json:"state"` }
ScheduleTriggerSpec defines an event indicating that the pod-set can be transitioned from planning to schedule state.
func (*ScheduleTriggerSpec) DeepCopy ¶
func (in *ScheduleTriggerSpec) DeepCopy() *ScheduleTriggerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScheduleTriggerSpec.
func (*ScheduleTriggerSpec) DeepCopyInto ¶
func (in *ScheduleTriggerSpec) DeepCopyInto(out *ScheduleTriggerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScheduleTriggerStatus ¶
type ScheduleTriggerStatus struct{}
ScheduleTriggerStatus defines the status for a trigger.
func (*ScheduleTriggerStatus) DeepCopy ¶
func (in *ScheduleTriggerStatus) DeepCopy() *ScheduleTriggerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScheduleTriggerStatus.
func (*ScheduleTriggerStatus) DeepCopyInto ¶
func (in *ScheduleTriggerStatus) DeepCopyInto(out *ScheduleTriggerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.