k3s/pkg/controller/volume/attachdetach
Kubernetes Submit Queue 2f39e8a045
Merge pull request #57724 from mlmhl/ad_controller_populateDesiredStateOfWorld
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

fix populateDesiredStateOfWorld bug for attach/detach controller

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

The `attachDetachController.populateDesiredStateOfWorld` mehod will fetch all pods from the informer cache and add each pods to `DesiredStateOfWorld` by the [addPod method](da9a4d5da9/pkg/controller/volume/attachdetach/attach_detach_controller.go (L338)).
However, the element type of pod list returned by `podLister.List` is already `*v1.Pod`, so we needn't to take the address any more.

**Release note**:

```release-note
NONE
```

/sig storage
/kind bug
2018-01-10 05:12:27 -08:00
..
cache Merge pull request #57501 from linyouchong/linyouchong-20171221 2018-01-09 11:34:27 -08:00
populator Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
reconciler Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
statusupdater refactor method to pkg/util/node 2017-11-06 09:51:09 +08:00
testing update BUILD files 2017-10-15 18:18:13 -07:00
util update BUILD files 2017-10-15 18:18:13 -07:00
BUILD Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
OWNERS
attach_detach_controller.go fix populateDesiredStateOfWorld bug for attach/detach controller 2018-01-07 17:45:42 +08:00
attach_detach_controller_test.go use core client with explicit version globally 2017-10-27 15:48:32 +08:00