Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 67 for oldpod (0.23 sec)

  1. plugin/pkg/auth/authorizer/node/node_authorizer_test.go

    	node2 := &user.DefaultInfo{Name: "system:node:node2", Groups: []string{"system:nodes"}}
    	node3 := &user.DefaultInfo{Name: "system:node:node3", Groups: []string{"system:nodes"}}
    
    	g.AddPod(&corev1.Pod{
    		ObjectMeta: metav1.ObjectMeta{Name: "pod1-node1", Namespace: "ns1"},
    		Spec: corev1.PodSpec{
    			NodeName: "node1",
    			Volumes: []corev1.Volume{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  2. pkg/scheduler/testing/framework/fake_extender.go

    	var potentialVictims []*v1.Pod
    
    	removePod := func(rp *v1.Pod) error {
    		return nodeInfoCopy.RemovePod(logger, rp)
    	}
    	addPod := func(ap *v1.Pod) {
    		nodeInfoCopy.AddPod(ap)
    	}
    	// As the first step, remove all the lower priority pods from the node and
    	// check if the given pod can be scheduled.
    	podPriority := corev1helpers.PodPriority(pod)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 19:07:19 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  3. operator/pkg/controller/istiocontrolplane/istiocontrolplane_controller.go

    			oldIOP := e.ObjectOld
    			newIOP := e.ObjectNew
    
    			// If revision is updated in the IstioOperator resource, we must remove entries
    			// from the cache. If the IstioOperator resource is reverted back to match this operator's
    			// revision, a clean cache would ensure that the operator Reconcile the IstioOperator,
    			// and not skip it.
    			if oldIOP.Spec.Revision != newIOP.Spec.Revision {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 13:56:46 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  4. pkg/controller/volume/attachdetach/cache/desired_state_of_world.go

    type DesiredStateOfWorld interface {
    	// AddNode adds the given node to the list of nodes managed by the attach/
    	// detach controller.
    	// If the node already exists this is a no-op.
    	AddNode(nodeName k8stypes.NodeName)
    
    	// AddPod adds the given pod to the list of pods that reference the
    	// specified volume and is scheduled to the specified node.
    	// A unique volumeName is generated from the volumeSpec and returned on
    	// success.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 10:42:15 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  5. plugin/pkg/auth/authorizer/node/graph.go

    	})
    	g.destinationEdgeIndex[n.ID()] = index
    }
    
    // AddPod should only be called once spec.NodeName is populated.
    // It sets up edges for the following relationships (which are immutable for a pod once bound to a node):
    //
    //	pod       -> node
    //	secret    -> pod
    //	configmap -> pod
    //	pvc       -> pod
    //	svcacct   -> pod
    func (g *Graph) AddPod(pod *corev1.Pod) {
    	start := time.Now()
    	defer func() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  6. 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)
  7. pkg/scheduler/framework/types.go

    		n.PodsWithRequiredAntiAffinity = append(n.PodsWithRequiredAntiAffinity, podInfo)
    	}
    	n.update(podInfo.Pod, 1)
    }
    
    // AddPod is a wrapper around AddPodInfo.
    func (n *NodeInfo) AddPod(pod *v1.Pod) {
    	// ignore this err since apiserver doesn't properly validate affinity terms
    	// and we can't fix the validation for backwards compatibility.
    	podInfo, _ := NewPodInfo(pod)
    	n.AddPodInfo(podInfo)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 19:28:17 UTC 2024
    - 36.7K bytes
    - Viewed (0)
  8. 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)
  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