Files
kubernetes/pkg/controller
Kubernetes Submit Queue b0d2f68ce3 Merge pull request #42294 from mlmhl/deploy-controller-cachesync
Automatic merge from submit-queue

fix rsListerSynced and podListerSynced for DeploymentController

**What this PR does / why we need it**:

There is a mistake when initializing `DeploymentController`'s `rsListerSynced` and `podListerSynced` in `NewDeploymentController`, they are all initialized to `Deployment`'s `Informer`, so the `DeploymentController` maybe running before the `ReplicaSet` cache and `Pod` cache has been synced.

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #

**Special notes for your reviewer**:

Indeed according unit test is neccessary, but this bug fix is simple, and if the tests is neccessary I will submit another PR later.

**Release note**:

```release-note
```
2017-03-01 11:05:48 -08:00
..
2017-02-13 09:18:32 -05:00
2017-02-13 09:18:32 -05:00
2017-02-13 09:18:32 -05:00
2017-02-13 09:18:32 -05:00
2017-02-28 23:05:41 -08:00
2017-02-13 09:18:32 -05:00
2017-02-27 21:24:45 -08:00
2017-02-13 09:18:32 -05:00
2017-02-28 23:05:41 -08:00
2017-02-28 23:05:41 -08:00
2017-02-13 09:18:32 -05:00
2016-10-13 16:10:24 -07:00
2017-02-27 06:48:13 -05:00
2017-02-28 23:05:41 -08:00
2017-02-28 23:05:41 -08:00
2016-07-16 13:48:21 -04:00