Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 172 for addpad (0.13 sec)

  1. pkg/scheduler/framework/cycle_state.go

    type StateData interface {
    	// Clone is an interface to make a copy of StateData. For performance reasons,
    	// clone should make shallow copies for members (e.g., slices or maps) that are not
    	// impacted by PreFilter's optional AddPod/RemovePod methods.
    	Clone() StateData
    }
    
    // StateKey is the type of keys stored in CycleState.
    type StateKey string
    
    // CycleState provides a mechanism for plugins to store and retrieve arbitrary data.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 18 06:48:20 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. pkg/controller/statefulset/stateful_set_test.go

    	om.setsIndexer.Add(set1)
    	om.setsIndexer.Add(set2)
    
    	ssc.addPod(logger, pod1)
    	key, done := ssc.queue.Get()
    	if key == "" || done {
    		t.Error("failed to enqueue StatefulSet")
    	} else if expectedKey, _ := controller.KeyFunc(set1); expectedKey != key {
    		t.Errorf("expected StatefulSet key %s found %s", expectedKey, key)
    	}
    	ssc.queue.Done(key)
    
    	ssc.addPod(logger, pod2)
    	key, done = ssc.queue.Get()
    	if key == "" || done {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  3. pkg/controller/statefulset/stateful_set.go

    		return
    	}
    
    	for i := 0; i < workers; i++ {
    		go wait.UntilWithContext(ctx, ssc.worker, time.Second)
    	}
    
    	<-ctx.Done()
    }
    
    // addPod adds the statefulset for the pod to the sync queue
    func (ssc *StatefulSetController) addPod(logger klog.Logger, obj interface{}) {
    	pod := obj.(*v1.Pod)
    
    	if pod.DeletionTimestamp != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  4. src/cmd/link/internal/arm/asm.go

    			// Workaround for issue #58425: it appears that the
    			// external linker doesn't always take into account the
    			// relocation addend when doing reachability checks. This
    			// means that if you have a call from function XYZ at
    			// offset 8 to runtime.duffzero with addend 800 (for
    			// example), where the distance between the start of XYZ
    			// and the start of runtime.duffzero is just over the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 23 05:58:20 UTC 2023
    - 22.9K bytes
    - Viewed (0)
  5. hack/testdata/CRD/multi-crd-list-added-field.yaml

    Nikhita Raghunath <******@****.***> 1506872372 +0530
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Oct 01 15:43:24 UTC 2017
    - 345 bytes
    - Viewed (0)
  6. pkg/scheduler/framework/types.go

    // it's added to the queue.
    type QueuedPodInfo struct {
    	*PodInfo
    	// The time pod added to the scheduling queue.
    	Timestamp time.Time
    	// Number of schedule attempts before successfully scheduled.
    	// It's used to record the # attempts metric.
    	Attempts int
    	// The time when the pod is added to the queue for the first time. The pod may be added
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 19:28:17 UTC 2024
    - 36.7K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/plugins/defaultpreemption/default_preemption.go

    			return err
    		}
    		status := pl.fh.RunPreFilterExtensionRemovePod(ctx, state, pod, rpi, nodeInfo)
    		if !status.IsSuccess() {
    			return status.AsError()
    		}
    		return nil
    	}
    	addPod := func(api *framework.PodInfo) error {
    		nodeInfo.AddPodInfo(api)
    		status := pl.fh.RunPreFilterExtensionAddPod(ctx, state, pod, api, nodeInfo)
    		if !status.IsSuccess() {
    			return status.AsError()
    		}
    		return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Nov 25 19:36:04 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  8. pkg/controller/volume/attachdetach/metrics/metrics_test.go

    	volumeName := v1.UniqueVolumeName("volume-name")
    	volumeSpec := controllervolumetesting.GetTestVolumeSpec(string(volumeName), volumeName)
    	nodeName := k8stypes.NodeName("node-name")
    
    	dsw.AddNode(nodeName)
    	_, err := dsw.AddPod(types.UniquePodName(podName), controllervolumetesting.NewPod(podName, podName), volumeSpec, nodeName)
    	if err != nil {
    		t.Fatalf("Expected no error, got %v", err)
    	}
    	logger, _ := ktesting.NewTestContext(t)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 10:42:15 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  9. pkg/scheduler/framework/plugins/volumerestrictions/volume_restrictions.go

    	if !needsCheck && s.conflictingPVCRefCount == 0 {
    		return nil, framework.NewStatus(framework.Skip)
    	}
    	cycleState.Write(preFilterStateKey, s)
    	return nil, nil
    }
    
    // AddPod from pre-computed data in cycleState.
    func (pl *VolumeRestrictions) AddPod(ctx context.Context, cycleState *framework.CycleState, podToSchedule *v1.Pod, podInfoToAdd *framework.PodInfo, nodeInfo *framework.NodeInfo) *framework.Status {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 20 17:40:39 UTC 2023
    - 12.5K bytes
    - Viewed (1)
  10. pkg/scheduler/extender_test.go

    			for i, nm := range tt.nodeNames {
    				nodeInfo := framework.NewNodeInfo()
    				node := createNode(nm)
    				nodeInfo.SetNode(node)
    				nodeInfo.AddPod(tt.podsInNodeList[i])
    				nodeInfo.AddPod(tt.podsInNodeList[i+2])
    				nodeInfoList = append(nodeInfoList, nodeInfo)
    			}
    			tt.nodeInfos = tf.NodeInfoLister(nodeInfoList)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 19:07:19 UTC 2024
    - 16.7K bytes
    - Viewed (0)
Back to top