Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for AddClaim (0.09 sec)

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

    	r.lock.Lock()
    	defer r.lock.Unlock()
    	for _, volume := range volumes {
    		r.volumes[volume.Name] = volume
    	}
    }
    
    // AddClaim adds a PVC into VolumeReactor.
    func (r *VolumeReactor) AddClaim(claim *v1.PersistentVolumeClaim) {
    	r.lock.Lock()
    	defer r.lock.Unlock()
    	r.claims[claim.Name] = claim
    }
    
    // AddVolume adds a PV into VolumeReactor.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  2. pkg/controller/volume/persistentvolume/pv_controller_test.go

    		// it was connected to real API server, i.e. we call add/update/delete
    		// Claim/Volume methods. Also, all changes to volumes and claims are
    		// sent to add/update/delete Claim/Volume as real controller would do.
    		{
    			// addClaim gets a new claim. Check it's bound to a volume.
    			name:            "5-2 - complete bind",
    			initialVolumes:  newVolumeArray("volume5-2", "1Gi", "", "", v1.VolumeAvailable, v1.PersistentVolumeReclaimRetain, classEmpty),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 43.4K bytes
    - Viewed (0)
  3. pkg/controller/volume/persistentvolume/pv_controller_base.go

    	return controller, nil
    }
    
    // initializeCaches fills all controller caches with initial data from etcd in
    // order to have the caches already filled when first addClaim/addVolume to
    // perform initial synchronization of the controller.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 08:42:31 UTC 2024
    - 29.5K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/volumebinding/binder_test.go

    	for _, pvc := range cachedPVCs {
    		assumecache.AddTestObject(env.internalBinder.pvcCache.AssumeCache, pvc)
    		if apiPVCs == nil {
    			env.reactor.AddClaim(pvc)
    		}
    	}
    	for _, pvc := range apiPVCs {
    		env.reactor.AddClaim(pvc)
    	}
    }
    
    func (env *testEnv) initVolumes(cachedPVs []*v1.PersistentVolume, apiPVs []*v1.PersistentVolume) {
    	for _, pv := range cachedPVs {
    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