kubernetes/plugin/pkg/scheduler
Kubernetes Submit Queue 342ef1115c Merge pull request #42778 from k82cn/sched_cache_sync
Automatic merge from submit-queue (batch tested with PRs 42762, 42739, 42425, 42778)

Fixed potential OutOfSync of nodeInfo.

The cloned NodeInfo still share the same resource objects in cache; it may make `requestedResource` and Pods OutOfSync, for example, if the pod was deleted, the `requestedResource` is updated by Pods are not in cloned info. Found this when investigating #32531 , but seems not the root cause, as nodeInfo are readonly in predicts & priorities.

Sample codes for `&(*)`:

```
package main

import (
	"fmt"
)

type Resource struct {
	A int
}

type Node struct {
	Res *Resource
}

func main() {
	r1 := &Resource { A:10 }
	n1 := &Node{Res: r1}
	r2 := &(*n1.Res)
	r2.A = 11

	fmt.Printf("%t, %d %d\n", r1==r2, r1, r2)
}
```

Output:

```
true, &{11} &{11}
```
2017-03-09 02:51:42 -08:00
..
algorithm Merge pull request #42708 from timchenxiaoyu/prioritytypo 2017-03-08 11:38:09 -08:00
algorithmprovider Merge pull request #41708 from bsalamat/statefulset_spreading2 2017-02-28 20:16:08 -08:00
api - scheduler extenders that are capable of maintaining their own 2017-02-23 10:25:42 -08:00
core Add support for statefulset spreading to the scheduler 2017-02-27 18:04:08 -08:00
factory Add support for statefulset spreading to the scheduler 2017-02-27 18:04:08 -08:00
metrics Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
schedulercache Merge pull request #42778 from k82cn/sched_cache_sync 2017-03-09 02:51:42 -08:00
testing Add support for statefulset spreading to the scheduler 2017-02-27 18:04:08 -08:00
util [scheduler] interface for configuration factory, configurator. 2017-01-18 15:06:16 -05:00
BUILD Switch scheduler to use generated listers/informers 2017-02-23 09:57:12 -05:00
OWNERS OWNERS: Update latest OWNERS files 2017-01-23 10:05:48 -08:00
scheduler.go Switch scheduler to use generated listers/informers 2017-02-23 09:57:12 -05:00
scheduler_test.go move the lister.go to testing folder 2017-02-25 23:36:27 +08:00