Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 2,127 for removePod (0.15 sec)

  1. pkg/scheduler/eventhandlers.go

    		logger.Error(nil, "Cannot convert to *v1.Pod", "obj", t)
    		return
    	}
    
    	logger.V(3).Info("Delete event for scheduled pod", "pod", klog.KObj(pod))
    	if err := sched.Cache.RemovePod(logger, pod); err != nil {
    		logger.Error(err, "Scheduler cache RemovePod failed", "pod", klog.KObj(pod))
    	}
    
    	sched.SchedulingQueue.MoveAllToActiveOrBackoffQueue(logger, queue.AssignedPodDelete, pod, nil, nil)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:21:04 UTC 2024
    - 24K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/runtime/framework_test.go

    		wantStatusCode     framework.Code
    	}{
    		{
    			name: "no plugins are skipped and all RemovePod() returned success",
    			plugins: []*TestPlugin{
    				{
    					name: "success1",
    				},
    				{
    					name: "success2",
    				},
    			},
    			wantStatusCode: framework.Success,
    		},
    		{
    			name: "one RemovePod() returned error",
    			plugins: []*TestPlugin{
    				{
    					name: "success1",
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 103K bytes
    - Viewed (0)
  3. pkg/kubelet/kubelet_test.go

    	kubelet.podWorkers.(*fakePodWorkers).running = map[types.UID]bool{
    		testPod1.UID: true,
    		testPod2.UID: true,
    		testPod3.UID: true,
    	}
    	defer kubelet.podManager.RemovePod(testPod3)
    	defer kubelet.podManager.RemovePod(testPod2)
    	defer kubelet.podManager.RemovePod(testPod1)
    
    	tests := []struct {
    		name                string
    		pod                 *v1.Pod
    		newRequests         v1.ResourceList
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/defaultpreemption/default_preemption_test.go

    var podTopologySpreadFunc = frameworkruntime.FactoryAdapter(feature.Features{}, podtopologyspread.New)
    
    // TestPlugin returns Error status when trying to `AddPod` or `RemovePod` on the nodes which have the {k,v} label pair defined on the nodes.
    type TestPlugin struct {
    	name string
    }
    
    func newTestPlugin(_ context.Context, injArgs runtime.Object, f framework.Handle) (framework.Plugin, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  5. pkg/kubelet/status/status_manager_test.go

    	kubetypes "k8s.io/kubernetes/pkg/kubelet/types"
    	"k8s.io/kubernetes/pkg/kubelet/util"
    )
    
    type mutablePodManager interface {
    	AddPod(*v1.Pod)
    	UpdatePod(*v1.Pod)
    	RemovePod(*v1.Pod)
    }
    
    // Generate new instance of test pod with the same initial value.
    func getTestPod() *v1.Pod {
    	return &v1.Pod{
    		TypeMeta: metav1.TypeMeta{
    			Kind:       "Pod",
    			APIVersion: "v1",
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 16:27:19 UTC 2024
    - 68.1K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/types_test.go

    	for i, test := range tests {
    		t.Run(fmt.Sprintf("case_%d", i), func(t *testing.T) {
    			logger, _ := ktesting.NewTestContext(t)
    			ni := fakeNodeInfo(pods...)
    
    			gen := ni.Generation
    			err := ni.RemovePod(logger, test.pod)
    			if err != nil {
    				if test.errExpected {
    					expectedErrorMsg := fmt.Errorf("no corresponding pod %s in pods of node %s", test.pod.Name, ni.Node().Name)
    					if expectedErrorMsg == err {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 45.9K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/plugins/interpodaffinity/filtering_test.go

    				t.Errorf("State is not equal, got: %v, want: %v", state, allPodsState)
    			}
    
    			// Remove the added pod pod and make sure it is equal to the original state.
    			if err := ipa.RemovePod(context.Background(), cycleState, test.pendingPod, mustNewPodInfo(t, test.addedPod), nodeInfo); err != nil {
    				t.Errorf("error removing pod from meta: %v", err)
    			}
    			if !reflect.DeepEqual(originalState, state) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 01 10:24:54 UTC 2023
    - 58.2K bytes
    - Viewed (0)
  8. pkg/kubelet/kubelet.go

    			StartTime:  start,
    		})
    	}
    }
    
    // HandlePodRemoves is the callback in the SyncHandler interface for pods
    // being removed from a config source.
    func (kl *Kubelet) HandlePodRemoves(pods []*v1.Pod) {
    	start := kl.clock.Now()
    	for _, pod := range pods {
    		kl.podManager.RemovePod(pod)
    
    		pod, mirrorPod, wasMirror := kl.podManager.GetPodAndMirrorPod(pod)
    		if wasMirror {
    			if pod == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
  9. pkg/scheduler/framework/plugins/podtopologyspread/filtering_test.go

    				t.Fatal(err)
    			}
    			if s := p.RemovePod(ctx, cs, tt.preemptor, mustNewPodInfo(t, deletedPod), nodeInfo); !s.IsSuccess() {
    				t.Fatal(s.AsError())
    			}
    
    			state, err := getPreFilterState(cs)
    			if err != nil {
    				t.Fatal(err)
    			}
    			if diff := cmp.Diff(tt.want, state, cmpOpts...); diff != "" {
    				t.Errorf("PodTopologySpread.RemovePod() returned diff (-want,+got):\n%s", diff)
    			}
    		})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 10:42:29 UTC 2024
    - 143.1K bytes
    - Viewed (0)
  10. pkg/scheduler/schedule_one_test.go

    		t.Fatalf("timeout in fitting after %v", wait.ForeverTestTimeout)
    	}
    
    	// We mimic the workflow of cache behavior when a pod is removed by user.
    	// Note: if the schedulernodeinfo timeout would be super short, the first pod would expire
    	// and would be removed itself (without any explicit actions on schedulernodeinfo). Even in that case,
    	// explicitly AddPod will as well correct the behavior.
    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