From 0e6ac1df76f30375c0ef81b58c4f1e575efd7957 Mon Sep 17 00:00:00 2001 From: mlmhl Date: Mon, 1 Jan 2018 21:35:13 +0800 Subject: [PATCH] fix populateDesiredStateOfWorld bug for attach/detach controller --- pkg/controller/volume/attachdetach/attach_detach_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/volume/attachdetach/attach_detach_controller.go b/pkg/controller/volume/attachdetach/attach_detach_controller.go index 3c01e6b05a4cd..e7576ea0c3acc 100644 --- a/pkg/controller/volume/attachdetach/attach_detach_controller.go +++ b/pkg/controller/volume/attachdetach/attach_detach_controller.go @@ -335,7 +335,7 @@ func (adc *attachDetachController) populateDesiredStateOfWorld() error { } for _, pod := range pods { podToAdd := pod - adc.podAdd(&podToAdd) + adc.podAdd(podToAdd) for _, podVolume := range podToAdd.Spec.Volumes { // The volume specs present in the ActualStateOfWorld are nil, let's replace those // with the correct ones found on pods. The present in the ASW with no corresponding