Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 69 for pvs (0.02 sec)

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

    		env.reactor.AddVolume(pv)
    	}
    
    }
    
    func (env *testEnv) updateVolumes(ctx context.Context, pvs []*v1.PersistentVolume) error {
    	for i, pv := range pvs {
    		newPv, err := env.client.CoreV1().PersistentVolumes().Update(ctx, pv, metav1.UpdateOptions{})
    		if err != nil {
    			return err
    		}
    		pvs[i] = newPv
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 09:46:58 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/volumebinding/assume_cache_test.go

    	pvs[updatedPV.Name] = updatedPV
    	assumecache.UpdateTestObject(cache.AssumeCache, updatedPV)
    
    	// List them
    	verifyListPVs(t, cache, pvs, "")
    
    	// Delete a PV
    	deletedPV := pvs["test-pv7"]
    	delete(pvs, deletedPV.Name)
    	assumecache.DeleteTestObject(cache.AssumeCache, deletedPV)
    
    	// List them
    	verifyListPVs(t, cache, pvs, "")
    }
    
    func TestPVCacheWithStorageClasses(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 09:46:58 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  3. plugin/pkg/auth/authorizer/node/node_authorizer_test.go

    		pvs = append(pvs, pv)
    
    		pod.Spec.Volumes = append(pod.Spec.Volumes, corev1.Volume{VolumeSource: corev1.VolumeSource{
    			PersistentVolumeClaim: &corev1.PersistentVolumeClaimVolumeSource{ClaimName: pv.Spec.ClaimRef.Name},
    		}})
    	}
    
    	return pod, pvs
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/volumebinding/assume_cache.go

    		Spec: v1.PersistentVolumeSpec{
    			StorageClassName: storageClassName,
    		},
    	})
    	pvs := []*v1.PersistentVolume{}
    	for _, obj := range objs {
    		pv, ok := obj.(*v1.PersistentVolume)
    		if !ok {
    			c.logger.Error(&assumecache.WrongTypeError{TypeName: "v1.PersistentVolume", Object: obj}, "ListPVs")
    			continue
    		}
    		pvs = append(pvs, pv)
    	}
    	return pvs
    }
    
    // PVCAssumeCache is a AssumeCache for PersistentVolumeClaim objects
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 09:46:58 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  5. association.go

    					tx.Where(clause.Eq{Column: ref.ForeignKey.DBName, Value: ref.PrimaryValue})
    				}
    			}
    
    			if _, pvs := schema.GetIdentityFieldValuesMap(association.DB.Statement.Context, reflectValue, primaryFields); len(pvs) > 0 {
    				column, values := schema.ToQueryValues(rel.FieldSchema.Table, foreignKeys, pvs)
    				if association.Unscope {
    					association.Error = tx.Where(clause.IN{Column: column, Values: values}).Delete(modelValue).Error
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  6. pkg/controller/volume/persistentvolume/delete_test.go

    			expectedClaims:  noclaims,
    			expectedEvents:  noevents,
    			errors:          noerrors,
    			test:            testSyncVolume,
    		},
    		{
    			// delete success - two PVs are provisioned for a single claim.
    			// One of the PVs is deleted.
    			name: "8-11 - two PVs provisioned for a single claim",
    			initialVolumes: []*v1.PersistentVolume{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  7. pkg/controller/volume/persistentvolume/index.go

    func (pvIndex *persistentVolumeOrderedIndex) findByClaim(claim *v1.PersistentVolumeClaim, delayBinding bool) (*v1.PersistentVolume, error) {
    	// PVs are indexed by their access modes to allow easier searching.  Each
    	// index is the string representation of a set of access modes. There is a
    	// finite number of possible sets and PVs will only be indexed in one of
    	// them (whichever index matches the PV's modes).
    	//
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 6.5K bytes
    - Viewed (0)
  8. pkg/controller/volume/attachdetach/testing/testvolumespec.go

    		return true, createAction.GetObject(), nil
    	})
    
    	pvs = &v1.PersistentVolumeList{}
    	fakeClient.AddReactor("list", "persistentvolumes", func(action core.Action) (handled bool, ret runtime.Object, err error) {
    		obj := &v1.PersistentVolumeList{}
    		obj.Items = append(obj.Items, pvs.Items...)
    		return true, obj, nil
    	})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 17 08:48:30 UTC 2023
    - 16.5K bytes
    - Viewed (0)
  9. pkg/scheduler/framework/plugins/volumebinding/volume_binding_test.go

    func TestVolumeBinding(t *testing.T) {
    	table := []struct {
    		name                    string
    		pod                     *v1.Pod
    		nodes                   []*v1.Node
    		pvcs                    []*v1.PersistentVolumeClaim
    		pvs                     []*v1.PersistentVolume
    		fts                     feature.Features
    		args                    *config.VolumeBindingArgs
    		wantPreFilterResult     *framework.PreFilterResult
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 32K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/volumebinding/binder.go

    	b.csiDriverLister = capacityCheck.CSIDriverInformer.Lister()
    	b.csiStorageCapacityLister = capacityCheck.CSIStorageCapacityInformer.Lister()
    
    	return b
    }
    
    // FindPodVolumes finds the matching PVs for PVCs and nodes to provision PVs
    // for the given pod and node. If the node does not fit, conflict reasons are
    // returned.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 14:55:34 UTC 2024
    - 42.6K bytes
    - Viewed (0)
Back to top