Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the kupid v1alpha1 API group +kubebuilder:object:generate=true +groupName=kupid.gardener.cloud
Index ¶
- Variables
- type ClusterPodSchedulingPolicy
- func (in *ClusterPodSchedulingPolicy) DeepCopy() *ClusterPodSchedulingPolicy
- func (in *ClusterPodSchedulingPolicy) DeepCopyInto(out *ClusterPodSchedulingPolicy)
- func (in *ClusterPodSchedulingPolicy) DeepCopyObject() runtime.Object
- func (s *ClusterPodSchedulingPolicy) GetAffinity() *corev1.Affinity
- func (s *ClusterPodSchedulingPolicy) GetNodeName() string
- func (s *ClusterPodSchedulingPolicy) GetNodeSelector() map[string]string
- func (s *ClusterPodSchedulingPolicy) GetSchedulerName() string
- func (s *ClusterPodSchedulingPolicy) GetTolerations() []corev1.Toleration
- type ClusterPodSchedulingPolicyList
- type ClusterPodSchedulingPolicySpec
- type PodSchedulingPolicy
- func (in *PodSchedulingPolicy) DeepCopy() *PodSchedulingPolicy
- func (in *PodSchedulingPolicy) DeepCopyInto(out *PodSchedulingPolicy)
- func (in *PodSchedulingPolicy) DeepCopyObject() runtime.Object
- func (s *PodSchedulingPolicy) GetAffinity() *corev1.Affinity
- func (s *PodSchedulingPolicy) GetNodeName() string
- func (s *PodSchedulingPolicy) GetNodeSelector() map[string]string
- func (s *PodSchedulingPolicy) GetSchedulerName() string
- func (s *PodSchedulingPolicy) GetTolerations() []corev1.Toleration
- type PodSchedulingPolicyList
- type PodSchedulingPolicySpec
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "kupid.gardener.cloud", 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 ClusterPodSchedulingPolicy ¶
type ClusterPodSchedulingPolicy struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ClusterPodSchedulingPolicySpec `json:"spec,omitempty"` }
ClusterPodSchedulingPolicy is the Schema for the clusterpodschedulingpolicies API
func (*ClusterPodSchedulingPolicy) DeepCopy ¶
func (in *ClusterPodSchedulingPolicy) DeepCopy() *ClusterPodSchedulingPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPodSchedulingPolicy.
func (*ClusterPodSchedulingPolicy) DeepCopyInto ¶
func (in *ClusterPodSchedulingPolicy) DeepCopyInto(out *ClusterPodSchedulingPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterPodSchedulingPolicy) DeepCopyObject ¶
func (in *ClusterPodSchedulingPolicy) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterPodSchedulingPolicy) GetAffinity ¶
func (s *ClusterPodSchedulingPolicy) GetAffinity() *corev1.Affinity
GetAffinity returns the configured Affinity.
func (*ClusterPodSchedulingPolicy) GetNodeName ¶
func (s *ClusterPodSchedulingPolicy) GetNodeName() string
GetNodeName returns the configured NodeName.
func (*ClusterPodSchedulingPolicy) GetNodeSelector ¶
func (s *ClusterPodSchedulingPolicy) GetNodeSelector() map[string]string
GetNodeSelector returns the configured NodeSelector.
func (*ClusterPodSchedulingPolicy) GetSchedulerName ¶
func (s *ClusterPodSchedulingPolicy) GetSchedulerName() string
GetSchedulerName returns the configured SchedulerName.
func (*ClusterPodSchedulingPolicy) GetTolerations ¶
func (s *ClusterPodSchedulingPolicy) GetTolerations() []corev1.Toleration
GetTolerations returns the configured Tolerations.
type ClusterPodSchedulingPolicyList ¶
type ClusterPodSchedulingPolicyList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ClusterPodSchedulingPolicy `json:"items"` }
ClusterPodSchedulingPolicyList contains a list of ClusterPodSchedulingPolicy
func (*ClusterPodSchedulingPolicyList) DeepCopy ¶
func (in *ClusterPodSchedulingPolicyList) DeepCopy() *ClusterPodSchedulingPolicyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPodSchedulingPolicyList.
func (*ClusterPodSchedulingPolicyList) DeepCopyInto ¶
func (in *ClusterPodSchedulingPolicyList) DeepCopyInto(out *ClusterPodSchedulingPolicyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterPodSchedulingPolicyList) DeepCopyObject ¶
func (in *ClusterPodSchedulingPolicyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterPodSchedulingPolicySpec ¶
type ClusterPodSchedulingPolicySpec struct { // PodSelector selects the pods to which the ClusterPodSchedulingPolicy applies. // Any given pod might match the PodSelector of multiple podschedulingpolicies. // In such a case the matching policies will be merged. TODO explain how the merge happens. // If present empty, it selects all pods in all the namespaces selected by NamespaceSelector. // If not present it does not select any pods. // // +optional PodSelector *metav1.LabelSelector `json:"podSelector,omitempty" protobuf:"bytes,2,opt,name=podSelector"` // Selects Namespaces using cluster-scoped labels. This field follows standard label // selector semantics. // If present but empty, it selects all namespaces. // If not present, it does not select any namespaces and hence does not select any pods either. // // +optional NamespaceSelector *metav1.LabelSelector `json:"namespaceSelector,omitempty" protobuf:"bytes,2,opt,name=namespaceSelector"` // NodeSelector is a selector which must be true for the pod to fit on a node. // Selector which must match a node's labels for the pod to be scheduled on that node. // More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ // +optional NodeSelector map[string]string `json:"nodeSelector,omitempty" protobuf:"bytes,7,rep,name=nodeSelector"` // NodeName is a request to schedule this pod onto a specific node. If it is non-empty, // the scheduler simply schedules this pod onto that node, assuming that it fits resource // requirements. // +optional NodeName string `json:"nodeName,omitempty" protobuf:"bytes,10,opt,name=nodeName"` // If specified, the pod's scheduling constraints // +optional Affinity *corev1.Affinity `json:"affinity,omitempty" protobuf:"bytes,18,opt,name=affinity"` // If specified, the pod will be dispatched by specified scheduler. // If not specified, the pod will be dispatched by default scheduler. // +optional SchedulerName string `json:"schedulerName,omitempty" protobuf:"bytes,19,opt,name=schedulerName"` // If specified, the pod's tolerations. // +optional Tolerations []corev1.Toleration `json:"tolerations,omitempty" protobuf:"bytes,22,opt,name=tolerations"` }
ClusterPodSchedulingPolicySpec defines the desired state of ClusterPodSchedulingPolicy
func (*ClusterPodSchedulingPolicySpec) DeepCopy ¶
func (in *ClusterPodSchedulingPolicySpec) DeepCopy() *ClusterPodSchedulingPolicySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPodSchedulingPolicySpec.
func (*ClusterPodSchedulingPolicySpec) DeepCopyInto ¶
func (in *ClusterPodSchedulingPolicySpec) DeepCopyInto(out *ClusterPodSchedulingPolicySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PodSchedulingPolicy ¶
type PodSchedulingPolicy struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PodSchedulingPolicySpec `json:"spec,omitempty"` }
PodSchedulingPolicy is the Schema for the podschedulingpolicies API
func (*PodSchedulingPolicy) DeepCopy ¶
func (in *PodSchedulingPolicy) DeepCopy() *PodSchedulingPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSchedulingPolicy.
func (*PodSchedulingPolicy) DeepCopyInto ¶
func (in *PodSchedulingPolicy) DeepCopyInto(out *PodSchedulingPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PodSchedulingPolicy) DeepCopyObject ¶
func (in *PodSchedulingPolicy) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*PodSchedulingPolicy) GetAffinity ¶
func (s *PodSchedulingPolicy) GetAffinity() *corev1.Affinity
GetAffinity returns the configured Affinity.
func (*PodSchedulingPolicy) GetNodeName ¶
func (s *PodSchedulingPolicy) GetNodeName() string
GetNodeName returns the configured NodeName.
func (*PodSchedulingPolicy) GetNodeSelector ¶
func (s *PodSchedulingPolicy) GetNodeSelector() map[string]string
GetNodeSelector returns the configured NodeSelector.
func (*PodSchedulingPolicy) GetSchedulerName ¶
func (s *PodSchedulingPolicy) GetSchedulerName() string
GetSchedulerName returns the configured SchedulerName.
func (*PodSchedulingPolicy) GetTolerations ¶
func (s *PodSchedulingPolicy) GetTolerations() []corev1.Toleration
GetTolerations returns the configured Tolerations.
type PodSchedulingPolicyList ¶
type PodSchedulingPolicyList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []PodSchedulingPolicy `json:"items"` }
PodSchedulingPolicyList contains a list of PodSchedulingPolicy
func (*PodSchedulingPolicyList) DeepCopy ¶
func (in *PodSchedulingPolicyList) DeepCopy() *PodSchedulingPolicyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSchedulingPolicyList.
func (*PodSchedulingPolicyList) DeepCopyInto ¶
func (in *PodSchedulingPolicyList) DeepCopyInto(out *PodSchedulingPolicyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PodSchedulingPolicyList) DeepCopyObject ¶
func (in *PodSchedulingPolicyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PodSchedulingPolicySpec ¶
type PodSchedulingPolicySpec struct { // PodSelector selects the pods to which the PodSchedulingPolicy applies. // Any given pod might match the PodSelector of multiple podschedulingpolicies. // In such a case the matching policies will be merged. TODO explain how the merge happens. // If present but empty it selects all pods in the namespace. // +optional PodSelector *metav1.LabelSelector `json:"podSelector,omitempty" protobuf:"bytes,2,opt,name=podSelector"` // NodeSelector is a selector which must be true for the pod to fit on a node. // Selector which must match a node's labels for the pod to be scheduled on that node. // More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ // +optional NodeSelector map[string]string `json:"nodeSelector,omitempty" protobuf:"bytes,7,rep,name=nodeSelector"` // NodeName is a request to schedule this pod onto a specific node. If it is non-empty, // the scheduler simply schedules this pod onto that node, assuming that it fits resource // requirements. // +optional NodeName string `json:"nodeName,omitempty" protobuf:"bytes,10,opt,name=nodeName"` // If specified, the pod's scheduling constraints // +optional Affinity *corev1.Affinity `json:"affinity,omitempty" protobuf:"bytes,18,opt,name=affinity"` // If specified, the pod will be dispatched by specified scheduler. // If not specified, the pod will be dispatched by default scheduler. // +optional SchedulerName string `json:"schedulerName,omitempty" protobuf:"bytes,19,opt,name=schedulerName"` // If specified, the pod's tolerations. // +optional Tolerations []corev1.Toleration `json:"tolerations,omitempty" protobuf:"bytes,22,opt,name=tolerations"` }
PodSchedulingPolicySpec defines the desired state of PodSchedulingPolicy
func (*PodSchedulingPolicySpec) DeepCopy ¶
func (in *PodSchedulingPolicySpec) DeepCopy() *PodSchedulingPolicySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSchedulingPolicySpec.
func (*PodSchedulingPolicySpec) DeepCopyInto ¶
func (in *PodSchedulingPolicySpec) DeepCopyInto(out *PodSchedulingPolicySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.