k3s/plugin/pkg
k8s-merge-robot 9a2ad73cee Merge pull request #22568 from abhgupta/abhgupta-dev
Automatic merge from submit-queue

Considering all nodes for the scheduler cache to allow lookups

Fixes the actual issue that led me to create https://github.com/kubernetes/kubernetes/issues/22554

Currently the nodes in the cache provided to the predicates excludes the unschedulable nodes using field level filtering for the watch results. This results in the above issue as the `ServiceAffinity` predicate uses the cached node list to look up the node metadata for a peer pod (another pod belonging to the same service). Since this peer pod could be currently hosted on a node that is currently unschedulable, the lookup could potentially fail, resulting in the pod failing to be scheduled.

As part of the fix, we are now including all nodes in the watch results and excluding the unschedulable nodes using `NodeCondition`

@derekwaynecarr PTAL
2016-06-11 12:22:46 -07:00
..
admission support AWS and Cinder attacher 2016-06-08 12:56:24 +00:00
auth pkg/master: enable certificates API and add rbac authorizer 2016-05-25 14:24:47 -07:00
client/auth Merge pull request #27146 from mikedanese/nil-ptr 2016-06-10 00:12:28 -07:00
scheduler Adding test case for scheduler NodeConditionPredicate 2016-06-08 14:41:38 -07:00
webhook Pull common webhook code into generic webhook plugin. 2016-05-10 14:41:14 -07:00