Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 50 for vol7 (0.05 sec)

  1. pkg/scheduler/framework/plugins/volumebinding/volume_binding.go

    func (pl *VolumeBinding) podHasPVCs(pod *v1.Pod) (bool, error) {
    	hasPVC := false
    	for _, vol := range pod.Spec.Volumes {
    		var pvcName string
    		isEphemeral := false
    		switch {
    		case vol.PersistentVolumeClaim != nil:
    			pvcName = vol.PersistentVolumeClaim.ClaimName
    		case vol.Ephemeral != nil:
    			pvcName = ephemeral.VolumeClaimName(pod, &vol)
    			isEphemeral = true
    		default:
    			// Volume is not using a PVC, ignore
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 16 14:13:06 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/nodevolumelimits/non_csi_test.go

    		{
    			ObjectMeta: metav1.ObjectMeta{Name: "some" + filterName + "Vol"},
    			Spec: v1.PersistentVolumeClaimSpec{
    				VolumeName:       "some" + filterName + "Vol",
    				StorageClassName: &filterName,
    			},
    		},
    		{
    			ObjectMeta: metav1.ObjectMeta{Name: "someNon" + filterName + "Vol"},
    			Spec: v1.PersistentVolumeClaimSpec{
    				VolumeName:       "someNon" + filterName + "Vol",
    				StorageClassName: &filterName,
    			},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Dec 30 23:00:56 UTC 2023
    - 36.8K bytes
    - Viewed (0)
  3. pkg/controller/resourcequota/resource_quota_controller_test.go

    				Volumes:    []v1.Volume{{Name: "vol"}},
    				Containers: []v1.Container{{Name: "ctr", Image: "image", Resources: getResourceRequirements(getResourceList("", ""), getResourceList("", ""))}},
    			},
    		},
    		&v1.Pod{
    			ObjectMeta: metav1.ObjectMeta{Name: "pod-running-2", Namespace: "testing"},
    			Status:     v1.PodStatus{Phase: v1.PodRunning},
    			Spec: v1.PodSpec{
    				Volumes:    []v1.Volume{{Name: "vol"}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 12 16:29:33 UTC 2023
    - 42.6K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/volumebinding/binder.go

    	return true, nil
    }
    
    func (b *volumeBinder) isVolumeBound(logger klog.Logger, pod *v1.Pod, vol *v1.Volume) (bound bool, pvc *v1.PersistentVolumeClaim, err error) {
    	pvcName := ""
    	isEphemeral := false
    	switch {
    	case vol.PersistentVolumeClaim != nil:
    		pvcName = vol.PersistentVolumeClaim.ClaimName
    	case vol.Ephemeral != nil:
    		// Generic ephemeral inline volumes also use a PVC,
    		// just with a computed name, and...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 14:55:34 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  5. pkg/volume/emptydir/empty_dir_test.go

    	if err != nil {
    		t.Fatalf("can't make a temp dir: %v", err)
    	}
    	defer os.RemoveAll(basePath)
    
    	plug := makePluginUnderTest(t, "kubernetes.io/empty-dir", basePath)
    
    	spec := &v1.Volume{
    		Name: "vol1",
    	}
    	pod := &v1.Pod{ObjectMeta: metav1.ObjectMeta{UID: types.UID("poduid")}}
    	mounter, err := plug.NewMounter(volume.NewSpecFromVolume(spec), pod, volume.VolumeOptions{})
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  6. pkg/kubelet/volumemanager/cache/desired_state_of_world.go

    	dsw.Lock()
    	defer dsw.Unlock()
    
    	vol, volExists := dsw.volumesToMount[volumeName]
    	if volExists {
    		vol.persistentVolumeSize = size
    		dsw.volumesToMount[volumeName] = vol
    	}
    }
    
    func (dsw *desiredStateOfWorld) VolumeExists(
    	volumeName v1.UniqueVolumeName, seLinuxMountContext string) bool {
    	dsw.RLock()
    	defer dsw.RUnlock()
    
    	vol, volumeExists := dsw.volumesToMount[volumeName]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/math/Stats.java

        while (values.hasNext()) {
          double value = values.next().doubleValue();
          count++;
          if (isFinite(value) && isFinite(mean)) {
            // Art of Computer Programming vol. 2, Knuth, 4.2.2, (15)
            mean += (value - mean) / count;
          } else {
            mean = calculateNewMeanNonFinite(mean, value);
          }
        }
        return mean;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 22K bytes
    - Viewed (0)
  8. guava/src/com/google/common/math/Stats.java

        while (values.hasNext()) {
          double value = values.next().doubleValue();
          count++;
          if (isFinite(value) && isFinite(mean)) {
            // Art of Computer Programming vol. 2, Knuth, 4.2.2, (15)
            mean += (value - mean) / count;
          } else {
            mean = calculateNewMeanNonFinite(mean, value);
          }
        }
        return mean;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  9. pkg/kubelet/volumemanager/reconciler/reconstruct_test.go

    			}
    
    			volumesFailedReconstruction := sets.New[string]()
    			for _, vol := range rcInstance.volumesFailedReconstruction {
    				volumesFailedReconstruction.Insert(vol.volumeSpecName)
    			}
    			if !reflect.DeepEqual(sets.List(volumesFailedReconstruction), tc.expectedVolumesFailedReconstruction) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/math/DoubleMath.java

        long count = 1;
        double mean = checkFinite(values[0]);
        for (int index = 1; index < values.length; ++index) {
          checkFinite(values[index]);
          count++;
          // Art of Computer Programming vol. 2, Knuth, 4.2.2, (15)
          mean += (values[index] - mean) / count;
        }
        return mean;
      }
    
      /**
       * Returns the <a href="http://en.wikipedia.org/wiki/Arithmetic_mean">arithmetic mean</a> of
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 18.9K bytes
    - Viewed (0)
Back to top