Make volume unmount more robust using exclusive mount w/ O_EXCL

This commit is contained in:
Cindy Wang
2016-07-06 10:42:56 -07:00
parent cbda93e23e
commit e13c678e3b
19 changed files with 227 additions and 25 deletions

View File

@@ -98,7 +98,8 @@ func TestRunOnce(t *testing.T) {
kb.podManager,
kb.kubeClient,
kb.volumePluginMgr,
fakeRuntime)
fakeRuntime,
kb.mounter)
kb.networkPlugin, _ = network.InitNetworkPlugin([]network.NetworkPlugin{}, "", nettest.NewFakeHost(nil), componentconfig.HairpinNone, kb.nonMasqueradeCIDR)
// TODO: Factor out "StatsProvider" from Kubelet so we don't have a cyclic dependency