- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for GetPluginMgr (0.24 sec)
-
pkg/volume/testing/volume_host.go
"k8s.io/kubernetes/pkg/volume/util/subpath" "k8s.io/mount-utils" "k8s.io/utils/exec" testingexec "k8s.io/utils/exec/testing" ) type FakeVolumeHost interface { VolumeHost GetPluginMgr() *VolumePluginMgr } // fakeVolumeHost is useful for testing volume plugins. // TODO: Extract fields specific to fakeKubeletVolumeHost and fakeAttachDetachVolumeHost. type fakeVolumeHost struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 11 09:02:45 UTC 2024 - 16.5K bytes - Viewed (0) -
pkg/volume/csi/csi_test.go
tmpDir, client, ProbeVolumePlugins(), "fakeNode", csiDriverInformer.Lister(), volumeAttachmentInformer.Lister(), ) attachDetachPlugMgr := attachDetachVolumeHost.GetPluginMgr() csiClient := setupClient(t, true) volSpec := test.specFunc(test.specName, test.driver, test.volName) pod := test.podFunc()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 03 15:55:13 UTC 2022 - 21.1K bytes - Viewed (0) -
pkg/volume/csi/csi_plugin_test.go
) default: t.Fatalf("Unsupported volume host type") } fakeHost, ok := host.(volumetest.FakeVolumeHost) if !ok { t.Fatalf("Unsupported volume host type") } pluginMgr := fakeHost.GetPluginMgr() plug, err := pluginMgr.FindPluginByName(CSIPluginName) if err != nil { t.Fatalf("can't find plugin %v", CSIPluginName) } csiPlug, ok := plug.(*csiPlugin) if !ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 41.8K bytes - Viewed (0) -
pkg/volume/testing/testing.go
plugins := ProbeVolumePlugins(volume.VolumeConfig{}) v := NewFakeVolumeHost( t, "", /* rootDir */ nil, /* kubeClient */ plugins, /* plugins */ ) return v.GetPluginMgr(), plugins[0].(*FakeVolumePlugin) } func GetTestKubeletVolumePluginMgr(t *testing.T) (*volume.VolumePluginMgr, *FakeVolumePlugin) { plugins := ProbeVolumePlugins(volume.VolumeConfig{})
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 12:32:15 UTC 2024 - 53.3K bytes - Viewed (0)