- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for GetVolumeName (0.26 sec)
-
pkg/volume/testing/testing.go
Plugin FakeVolumePlugin } func (f *FakeBasicVolumePlugin) GetPluginName() string { return f.Plugin.GetPluginName() } func (f *FakeBasicVolumePlugin) GetVolumeName(spec *volume.Spec) (string, error) { return f.Plugin.GetVolumeName(spec) } // CanSupport tests whether the plugin supports a given volume specification by // testing volume spec name begins with plugin name or not.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 12:32:15 UTC 2024 - 53.3K bytes - Viewed (0) -
pkg/volume/csi/csi_attacher_test.go
_, err := csiAttacher.k8s.StorageV1().VolumeAttachments().Create(context.TODO(), attachment, metav1.CreateOptions{}) if err != nil { t.Fatalf("failed to attach: %v", err) } volumeName, err := plug.GetVolumeName(spec) if err != nil { t.Errorf("test case %s failed: %v", tc.name, err) } err = csiAttacher.Detach(volumeName, types.NodeName(nodeName)) if tc.shouldFail && err == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 12:23:16 UTC 2024 - 58.1K bytes - Viewed (0)