Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for SetCounter (0.38 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/webhook/webhook_test.go

    		return -1
    	}
    
    	for _, mf := range mfs {
    		if mf.Name != nil && *mf.Name == name {
    			mfMetric := mf.GetMetric()
    			for _, m := range mfMetric {
    				if m.GetCounter() != nil {
    					return int(m.GetCounter().GetValue())
    				}
    			}
    		}
    	}
    
    	return -1
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 29 15:48:39 UTC 2023
    - 25.8K bytes
    - Viewed (0)
  2. pkg/controller/volume/expand/expand_controller.go

    	return nil, fmt.Errorf("NewWrapperUnmounter not supported by expand controller's VolumeHost implementation")
    }
    
    func (expc *expandController) GetMounter(pluginName string) mount.Interface {
    	return nil
    }
    
    func (expc *expandController) GetExec(pluginName string) utilexec.Interface {
    	return utilexec.New()
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  3. pkg/volume/testing/volume_host.go

    	return filepath.Join(f.rootDir, "pods", string(podUID), "plugins", pluginName)
    }
    
    func (f *fakeVolumeHost) GetKubeClient() clientset.Interface {
    	return f.kubeClient
    }
    
    func (f *fakeVolumeHost) GetMounter(pluginName string) mount.Interface {
    	return f.mounter
    }
    
    func (f *fakeVolumeHost) GetSubpather() subpath.Interface {
    	return f.subpather
    }
    
    func (f *fakeVolumeHost) GetPluginMgr() *VolumePluginMgr {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  4. pkg/volume/hostpath/host_path.go

    	}
    	return &hostPathMounter{
    		hostPath:      &hostPath{path: path, pathType: pathType},
    		readOnly:      readOnly,
    		mounter:       plugin.host.GetMounter(plugin.GetPluginName()),
    		hu:            kvh.GetHostUtil(),
    		noTypeChecker: plugin.noTypeChecker,
    	}, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  5. pkg/volume/csi/csi_block.go

    	// At this point it contains only "data/vol_data.json" and empty "dev/".
    	volumeDir := getVolumePluginDir(m.specName, m.plugin.host)
    	mounter := m.plugin.host.GetMounter(m.plugin.GetPluginName())
    	if err := removeall.RemoveAllOneFilesystem(mounter, volumeDir); err != nil {
    		return err
    	}
    
    	return nil
    }
    
    // UnmapPodDevice unmaps the block device path.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 06:07:40 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  6. pkg/volume/csi/csi_mounter.go

    			return true
    		}
    	}
    	return false
    }
    
    // isDirMounted returns the !notMounted result from IsLikelyNotMountPoint check
    func isDirMounted(plug *csiPlugin, dir string) (bool, error) {
    	mounter := plug.host.GetMounter(plug.GetPluginName())
    	notMnt, err := mounter.IsLikelyNotMountPoint(dir)
    	if err != nil && !os.IsNotExist(err) {
    		klog.Error(log("isDirMounted IsLikelyNotMountPoint test failed for dir [%v]", dir))
    		return false, err
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jan 30 10:47:59 UTC 2024
    - 21K bytes
    - Viewed (1)
  7. pkg/volume/local/local_test.go

    				t.Fatalf("can't make a temp dir: %v", err)
    			}
    			defer os.RemoveAll(tmpDir)
    			plug := &localVolumePlugin{
    				host: volumetest.NewFakeKubeletVolumeHost(t, tmpDir, nil, nil),
    			}
    			mounter := plug.host.GetMounter(plug.GetPluginName())
    			fakeMountPoints := []mount.MountPoint{}
    			for _, mp := range tt.mountPoints {
    				fakeMountPoint := mp
    				fakeMountPoint.Path = filepath.Join(tmpDir, mp.Path)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 08 10:53:39 UTC 2023
    - 22.5K bytes
    - Viewed (0)
  8. pkg/volume/csi/csi_plugin.go

    }
    
    func (p *csiPlugin) NewDeviceUnmounter() (volume.DeviceUnmounter, error) {
    	return p.NewDetacher()
    }
    
    func (p *csiPlugin) GetDeviceMountRefs(deviceMountPath string) ([]string, error) {
    	m := p.host.GetMounter(p.GetPluginName())
    	return m.GetMountRefs(deviceMountPath)
    }
    
    // BlockVolumePlugin methods
    var _ volume.BlockVolumePlugin = &csiPlugin{}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 29.2K bytes
    - Viewed (0)
  9. pkg/volume/util/util.go

    // and Exec taken from given VolumeHost.
    func NewSafeFormatAndMountFromHost(pluginName string, host volume.VolumeHost) *mount.SafeFormatAndMount {
    	mounter := host.GetMounter(pluginName)
    	exec := host.GetExec(pluginName)
    	return &mount.SafeFormatAndMount{Interface: mounter, Exec: exec}
    }
    
    // GetVolumeMode retrieves VolumeMode from pv.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  10. pkg/controller/volume/attachdetach/attach_detach_controller.go

    	return nil, fmt.Errorf("NewWrapperUnmounter not supported by Attach/Detach controller's VolumeHost implementation")
    }
    
    func (adc *attachDetachController) GetMounter(pluginName string) mount.Interface {
    	return nil
    }
    
    func (adc *attachDetachController) GetHostName() string {
    	return ""
    }
    
    func (adc *attachDetachController) GetHostIP() (net.IP, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 32.6K bytes
    - Viewed (0)
Back to top