mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 07:57:35 +00:00
fix go vet errors
Signed-off-by: Jess Frazelle <jessfraz@google.com> fix composites Signed-off-by: Jess Frazelle <me@jessfraz.com>
This commit is contained in:
committed by
Jess Frazelle
parent
eef8bfec23
commit
7e9d82129e
@@ -721,9 +721,16 @@ func VerifyZeroDetachCallCount(fakeVolumePlugin *FakeVolumePlugin) error {
|
||||
// manager and fake volume plugin using a fake volume host.
|
||||
func GetTestVolumePluginMgr(
|
||||
t *testing.T) (*VolumePluginMgr, *FakeVolumePlugin) {
|
||||
v := NewFakeVolumeHost(
|
||||
"", /* rootDir */
|
||||
nil, /* kubeClient */
|
||||
nil, /* plugins */
|
||||
"", /* rootContext */
|
||||
)
|
||||
plugins := ProbeVolumePlugins(VolumeConfig{})
|
||||
volumePluginMgr := NewFakeVolumeHost(
|
||||
"" /* rootDir */, nil /* kubeClient */, plugins, "" /* rootContext */).pluginMgr
|
||||
if err := v.pluginMgr.InitPlugins(plugins, v); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
return &volumePluginMgr, plugins[0].(*FakeVolumePlugin)
|
||||
return &v.pluginMgr, plugins[0].(*FakeVolumePlugin)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user