- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for FindPluginBySpec (0.21 sec)
-
pkg/volume/plugins_test.go
} if plug.GetPluginName() != testPluginName { t.Errorf("Wrong name: %s", plug.GetPluginName()) } _, err = vpm.FindPluginBySpec(nil) if err == nil { t.Errorf("Should return error if volume spec is nil") } volumeSpec := &Spec{} _, err = vpm.FindPluginBySpec(volumeSpec) if err != nil { t.Errorf("Should return test plugin if volume spec is not nil") } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 4.3K bytes - Viewed (0) -
pkg/volume/plugins.go
} klog.V(1).InfoS("Loaded volume plugin", "pluginName", name) return nil } // FindPluginBySpec looks for a plugin that can support a given volume // specification. If no plugins can support or more than one plugin can // support it, return error. func (pm *VolumePluginMgr) FindPluginBySpec(spec *Spec) (VolumePlugin, error) { pm.mutex.RLock() defer pm.mutex.RUnlock() if spec == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 06 16:13:15 UTC 2024 - 38.2K bytes - Viewed (0) -
pkg/controller/volume/attachdetach/metrics/metrics.go
if err != nil { continue } volumePlugin, err := collector.volumePluginMgr.FindPluginBySpec(volumeSpec) if err != nil { continue } pluginName := volumeutil.GetFullQualifiedPluginNameForVolume(volumePlugin.GetPluginName(), volumeSpec) nodeVolumeMap.add(pod.Spec.NodeName, pluginName) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 10 06:30:05 UTC 2023 - 7.5K bytes - Viewed (0) -
pkg/volume/csi/csi_test.go
} // mount volume t.Log("csiTest.VolumeAll Mouting volume...") volPlug, err := kubeletPlugMgr.FindPluginBySpec(volSpec) if err != nil || volPlug == nil { t.Fatalf("csiTest.VolumeAll PluginMgr.FindPluginBySpec failed: %v", err) } if volPlug == nil { t.Fatalf("csiTest.VolumeAll volumePlugin is nil") } if !volPlug.CanSupport(volSpec) {
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/kubelet/volumemanager/metrics/metrics.go
} counter.add("actual_state_of_world", pluginName) } for _, volumeToMount := range c.dsw.GetVolumesToMount() { pluginName := pluginNameNotAvailable if plugin, err := c.pluginMgr.FindPluginBySpec(volumeToMount.VolumeSpec); err == nil { pluginName = volumeutil.GetFullQualifiedPluginNameForVolume(plugin.GetPluginName(), volumeToMount.VolumeSpec) } counter.add("desired_state_of_world", pluginName) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 06 16:48:59 UTC 2023 - 5.2K bytes - Viewed (0) -
pkg/volume/util/operationexecutor/operation_generator.go
continue } volumePlugin, err := og.volumePluginMgr.FindPluginBySpec(volumeAttached.VolumeSpec) if err != nil || volumePlugin == nil { klog.Errorf(volumeAttached.GenerateErrorDetailed("VolumesAreAttached.FindPluginBySpec failed", err).Error()) continue } volumeSpecList, pluginExists := volumesPerPlugin[volumePlugin.GetPluginName()]
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 101.4K bytes - Viewed (0) -
pkg/volume/util/selinux.go
func SupportsSELinuxContextMount(volumeSpec *volume.Spec, volumePluginMgr *volume.VolumePluginMgr) (bool, error) { plugin, _ := volumePluginMgr.FindPluginBySpec(volumeSpec) if plugin != nil { return plugin.SupportsSELinuxContextMount(volumeSpec) } return false, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 20 14:40:21 UTC 2024 - 6.3K bytes - Viewed (0) -
pkg/volume/testing/volume_host.go
// The name of wrapper volume is set to "wrapped_{wrapped_volume_name}" wrapperVolumeName := "wrapped_" + volName if spec.Volume != nil { spec.Volume.Name = wrapperVolumeName } plug, err := f.pluginMgr.FindPluginBySpec(&spec) if err != nil { return nil, err } return plug.NewMounter(&spec, pod, opts) } func (f *fakeVolumeHost) NewWrapperUnmounter(volName string, spec Spec, podUID types.UID) (Unmounter, error) {
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/controller/volume/persistentvolume/metrics/metrics.go
func (collector *pvAndPVCCountCollector) getPVPluginName(pv *v1.PersistentVolume) string { spec := volume.NewSpecFromPersistentVolume(pv, true) fullPluginName := pluginNameNotAvailable if plugin, err := collector.pluginMgr.FindPluginBySpec(spec); err == nil { fullPluginName = metricutil.GetFullQualifiedPluginNameForVolume(plugin.GetPluginName(), spec) } return fullPluginName }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 25 13:09:16 UTC 2022 - 10.5K bytes - Viewed (0) -
pkg/kubelet/volume_host.go
wrapperVolumeName := "wrapped_" + volName if spec.Volume != nil { spec.Volume.Name = wrapperVolumeName } plugin, err := kvh.kubelet.volumePluginMgr.FindPluginBySpec(&spec) if err != nil { return nil, err } return plugin.NewUnmounter(spec.Name(), podUID) } func (kvh *kubeletVolumeHost) GetMounter(pluginName string) mount.Interface {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 11:00:37 UTC 2024 - 10K bytes - Viewed (0)