Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for initialVolumes (0.18 sec)

  1. pkg/controller/volume/persistentvolume/pv_controller_test.go

    		name                string
    		initialVolume       *v1.PersistentVolume
    		volumeAnnotations   map[string]string
    		expVolumeFinalizers []string
    		expModified         bool
    	}{
    		{
    			// Represents a CSI volume provisioned through external-provisioner, no CSI migration enabled.
    			name:                "13-1 migration was never enabled, volume has the finalizer",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 43.4K bytes
    - Viewed (0)
  2. pkg/controller/volume/persistentvolume/delete_test.go

    	_, ctx := ktesting.NewTestContext(t)
    	tests := []controllerTest{
    		{
    			// delete volume bound by controller
    			name:            "8-1 - successful delete",
    			initialVolumes:  newVolumeArray("volume8-1", "1Gi", "uid8-1", "claim8-1", v1.VolumeBound, v1.PersistentVolumeReclaimDelete, classEmpty, volume.AnnBoundByController),
    			expectedVolumes: novolumes,
    			initialClaims:   noclaims,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  3. pkg/controller/volume/persistentvolume/binder_test.go

    		// Test the matching with no claim.Spec.VolumeName and with various
    		// volumes.
    		{
    			// syncClaim binds to a matching unbound volume.
    			name:            "1-1 - successful bind",
    			initialVolumes:  newVolumeArray("volume1-1", "1Gi", "", "", v1.VolumeAvailable, v1.PersistentVolumeReclaimRetain, classEmpty),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:37:30 UTC 2023
    - 65.8K bytes
    - Viewed (0)
  4. pkg/controller/volume/persistentvolume/recycle_test.go

    	pods := []*v1.Pod{
    		runningPod,
    		pendingPod,
    		completedPod,
    	}
    
    	tests := []controllerTest{
    		{
    			// recycle volume bound by controller
    			name:            "6-1 - successful recycle",
    			initialVolumes:  newVolumeArray("volume6-1", "1Gi", "uid6-1", "claim6-1", v1.VolumeBound, v1.PersistentVolumeReclaimRecycle, classEmpty, volume.AnnBoundByController),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:37:30 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  5. pkg/controller/volume/persistentvolume/provision_test.go

    	_, ctx := ktesting.NewTestContext(t)
    	tests := []controllerTest{
    		{
    			// Provision a volume (with a default class)
    			name:            "11-1 - successful provision with storage class 1",
    			initialVolumes:  novolumes,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  6. pkg/kubelet/volumemanager/volume_manager_fake.go

    	reportedInUse map[v1.UniqueVolumeName]bool
    }
    
    // NewFakeVolumeManager creates a new VolumeManager test instance
    func NewFakeVolumeManager(initialVolumes []v1.UniqueVolumeName) *FakeVolumeManager {
    	volumes := map[v1.UniqueVolumeName]bool{}
    	for _, v := range initialVolumes {
    		volumes[v] = true
    	}
    	return &FakeVolumeManager{
    		volumes:       volumes,
    		reportedInUse: map[v1.UniqueVolumeName]bool{},
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 17 16:53:28 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  7. pkg/controller/volume/persistentvolume/framework_test.go

    //   - testSyncVolume - calls syncVolume on the first volume in initialVolumes.
    //   - any custom function for specialized tests.
    //
    // The test then contains list of volumes/claims that are expected at the end
    // of the test and list of generated events.
    type controllerTest struct {
    	// Name of the test, for logging
    	name string
    	// Initial content of controller volume cache.
    	initialVolumes []*v1.PersistentVolume
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 09:54:00 UTC 2023
    - 38.3K bytes
    - Viewed (0)
Back to top