Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for podMounts (0.27 sec)

  1. pkg/controller/statefulset/stateful_set_utils_test.go

    func newStatefulSetWithVolumes(replicas int32, name string, petMounts []v1.VolumeMount, podMounts []v1.VolumeMount) *apps.StatefulSet {
    	mounts := append(petMounts, podMounts...)
    	claims := []v1.PersistentVolumeClaim{}
    	for _, m := range petMounts {
    		claims = append(claims, newPVC(m.Name))
    	}
    
    	vols := []v1.Volume{}
    	for _, m := range podMounts {
    		vols = append(vols, v1.Volume{
    			Name: m.Name,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 50.9K bytes
    - Viewed (0)
  2. pkg/controller/deployment/deployment_controller_test.go

    	podMap, err := c.getPodMapForDeployment(d, f.rsLister)
    	if err != nil {
    		t.Fatalf("getPodMapForDeployment() error: %v", err)
    	}
    	podCount := 0
    	for _, podList := range podMap {
    		podCount += len(podList)
    	}
    	if got, want := podCount, 3; got != want {
    		t.Errorf("podCount = %v, want %v", got, want)
    	}
    
    	if got, want := len(podMap), 2; got != want {
    		t.Errorf("len(podMap) = %v, want %v", got, want)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  3. pkg/controller/disruption/disruption_test.go

    func TestMultipleControllers(t *testing.T) {
    	const podCount = 2
    	_, ctx := ktesting.NewTestContext(t)
    	dc, ps := newFakeDisruptionController(ctx)
    
    	pdb, pdbName := newMinAvailablePodDisruptionBudget(t, intstr.FromString("1%"))
    	add(t, dc.pdbStore, pdb)
    
    	pods := []*v1.Pod{}
    	for i := 0; i < podCount; i++ {
    		pod, _ := newPod(t, fmt.Sprintf("pod %d", i))
    		pods = append(pods, pod)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 50K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go

    			// copied from pred.Limit).
    			// The expected number of calls is n+1 where n is the smallest n so that:
    			// pageSize + pageSize * 2 + pageSize * 4 + ... + pageSize * 2^n >= podCount.
    			// For pageSize = 1, podCount = 1000, we get n+1 = 10, 2 ^ 10 = 1024.
    			currLimit := pageSize
    			for sum := uint64(1); sum < estimatedProcessedObjects; {
    				currLimit *= 2
    				if currLimit > maxLimit {
    					currLimit = maxLimit
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/storage/testing/store_tests.go

    		validation(t, 1, 1)
    	}
    }
    
    func RunTestListPaginationRareObject(ctx context.Context, t *testing.T, store storage.Interface, validation CallsValidation) {
    	podCount := 1000
    	var pods []*example.Pod
    	for i := 0; i < podCount; i++ {
    		obj := &example.Pod{ObjectMeta: metav1.ObjectMeta{Name: fmt.Sprintf("pod-%d", i)}}
    		key := computePodKey(obj)
    		storedObj := &example.Pod{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 91.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/MapMakerInternalMap.java

         */
        volatile int count;
    
        /**
         * Number of updates that alter the size of the table. This is used during bulk-read methods to
         * make sure they see a consistent snapshot: If modCounts change during a traversal of segments
         * computing size or checking containsValue, then we might have an inconsistent view of state so
         * (usually) must retry.
         */
        int modCount;
    
        /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat May 18 03:24:34 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

         */
        volatile int count;
    
        /**
         * Number of updates that alter the size of the table. This is used during bulk-read methods to
         * make sure they see a consistent snapshot: If modCounts change during a traversal of segments
         * computing size or checking containsValue, then we might have an inconsistent view of state so
         * (usually) must retry.
         */
        int modCount;
    
        /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat May 18 03:24:34 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/cache/LocalCache.java

        @GuardedBy("this")
        long totalWeight;
    
        /**
         * Number of updates that alter the size of the table. This is used during bulk-read methods to
         * make sure they see a consistent snapshot: If modCounts change during a traversal of segments
         * loading size or checking containsValue, then we might have an inconsistent view of state so
         * (usually) must retry.
         */
        int modCount;
    
        /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat May 18 03:24:34 UTC 2024
    - 143.6K bytes
    - Viewed (0)
  9. guava/src/com/google/common/cache/LocalCache.java

        @GuardedBy("this")
        long totalWeight;
    
        /**
         * Number of updates that alter the size of the table. This is used during bulk-read methods to
         * make sure they see a consistent snapshot: If modCounts change during a traversal of segments
         * loading size or checking containsValue, then we might have an inconsistent view of state so
         * (usually) must retry.
         */
        int modCount;
    
        /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat May 18 03:24:34 UTC 2024
    - 149.2K bytes
    - Viewed (0)
  10. pkg/scheduler/schedule_one_test.go

    	waitPodExpireChan := make(chan struct{})
    	timeout := make(chan struct{})
    	go func() {
    		for {
    			select {
    			case <-timeout:
    				return
    			default:
    			}
    			pods, err := scache.PodCount()
    			if err != nil {
    				errChan <- fmt.Errorf("cache.List failed: %v", err)
    				return
    			}
    			if pods == 0 {
    				close(waitPodExpireChan)
    				return
    			}
    			time.Sleep(100 * time.Millisecond)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 128.1K bytes
    - Viewed (0)
Back to top