Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for withEmptyDirVolume (0.15 sec)

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

    func (pb podBuilder) withPVCSVolume(pvcs []*v1.PersistentVolumeClaim) podBuilder {
    	for i, pvc := range pvcs {
    		pb.withPVCVolume(pvc.Name, fmt.Sprintf("vol%v", i))
    	}
    	return pb
    }
    
    func (pb podBuilder) withEmptyDirVolume() podBuilder {
    	pb.Pod.Spec.Volumes = append(pb.Pod.Spec.Volumes, v1.Volume{
    		VolumeSource: v1.VolumeSource{
    			EmptyDir: &v1.EmptyDirVolumeSource{},
    		},
    	})
    	return pb
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 13 07:42:19 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/volumebinding/binder_test.go

    			pod: makePod("test-pod").
    				withNamespace("testns").
    				withNodeName("node1").Pod,
    		},
    		"no-pvcs": {
    			pod: makePod("test-pod").
    				withNamespace("testns").
    				withNodeName("node1").
    				withEmptyDirVolume().Pod,
    		},
    		"pvc-not-found": {
    			cachePVCs:  []*v1.PersistentVolumeClaim{},
    			podPVCs:    []*v1.PersistentVolumeClaim{boundPVC},
    			shouldFail: true,
    		},
    		"bound-pvc": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 09:46:58 UTC 2024
    - 82.8K bytes
    - Viewed (0)
Back to top