kubernetes/plugin/pkg/scheduler/algorithm
HaiyangDING 41ed85479a move predicates into library (address #12744)
DONE:
1. refactor all predicates: predicates return fitOrNot(bool) and error(Error) in which the latter is of type
	PredicateFailureError or InsufficientResourceError. (For violation of either MaxEBSVolumeCount or
        MaxGCEPDVolumeCount, returns one same error type as ErrMaxVolumeCountExceeded)
2. GeneralPredicates() is a predicate function, which includes serveral other predicate functions (PodFitsResource,
        PodFitsHost, PodFitsHostPort). It is registered as one of the predicates in DefaultAlgorithmProvider, and
        is also called in canAdmitPod() in Kubelet and should be called by other components (like rescheduler, etc)
        if necessary. See discussion in issue #12744
3. remove podNumber check from GeneralPredicates
4. HostName is now verified in Kubelet's canAdminPod(). add TestHostNameConflicts in kubelet_test.go
5. add getNodeAnyWay() method in Kubelet to get node information in standaloneMode

TODO:
1. determine which predicates should be included in GeneralPredicates()
2. separate GeneralPredicates() into:
	a. GeneralPredicatesEvictPod() and
	b. GeneralPredicatesNotEvictPod()
3. DaemonSet should use GeneralPredicates()
2016-04-11 00:57:03 +08:00
..
predicates move predicates into library (address #12744) 2016-04-11 00:57:03 +08:00
priorities Parallelize computing selector spreading priority in scheduler. 2016-03-22 14:09:58 +01:00
doc.go Move pkg/scheduler to plugin/pkg/scheduler 2015-05-13 14:03:25 +08:00
listers.go add ReplicaSet support in scheduler 2016-02-16 14:34:46 +08:00
scheduler_interface_test.go fix typo 2016-03-12 14:06:41 +00:00
scheduler_interface.go Scheduler extension 2015-11-25 08:19:27 -08:00
types.go move predicates into library (address #12744) 2016-04-11 00:57:03 +08:00