Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 58 for fakeNode (0.33 sec)

  1. pkg/scheduler/eventhandlers_test.go

    	}{
    		{
    			name:       "no specific changed applied",
    			newNode:    st.MakeNode().Unschedulable(false).Obj(),
    			oldNode:    st.MakeNode().Unschedulable(false).Obj(),
    			wantEvents: nil,
    		},
    		{
    			name:       "only node spec unavailable changed",
    			newNode:    st.MakeNode().Unschedulable(false).Obj(),
    			oldNode:    st.MakeNode().Unschedulable(true).Obj(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 10 14:38:54 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/cpumanager/policy_static_test.go

    			topo:        topoDualSocketHT,
    			stAssignments: state.ContainerCPUAssignments{
    				"fakePod": map[string]cpuset.CPUSet{
    					"0": cpuset.New(0, 1, 2),
    				},
    			},
    			stDefaultCPUSet: cpuset.New(2, 3, 4, 5, 6, 7, 8, 9, 10, 11),
    			expErr:          fmt.Errorf("pod: fakePod, container: 0 cpuset: \"0-2\" overlaps with default cpuset \"2-11\""),
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 40.8K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/noderesources/least_allocated_test.go

    			name:         "nothing scheduled, nothing requested",
    			requestedPod: st.MakePod().Obj(),
    			nodes: []*v1.Node{
    				st.MakeNode().Name("node1").Capacity(map[v1.ResourceName]string{"cpu": "4000", "memory": "10000"}).Obj(),
    				st.MakeNode().Name("node2").Capacity(map[v1.ResourceName]string{"cpu": "4000", "memory": "10000"}).Obj(),
    			},
    			existingPods:   nil,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 18.8K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/noderesources/most_allocated_test.go

    			// Node2 Score: (0 + 0) / 2 = 0
    			name:         "nothing scheduled, nothing requested",
    			requestedPod: st.MakePod().Obj(),
    			nodes: []*v1.Node{
    				st.MakeNode().Name("node1").Capacity(map[v1.ResourceName]string{"cpu": "4000", "memory": "10000"}).Obj(),
    				st.MakeNode().Name("node2").Capacity(map[v1.ResourceName]string{"cpu": "4000", "memory": "10000"}).Obj(),
    			},
    			existingPods:   nil,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 16K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/tests/device_compiler_test_helper.cc

      *graph.mutable_library()->add_function() = make_test_fn;
      *graph.add_node() = MakeNode("a", "Placeholder", {},
                                   {{"dtype", DT_FLOAT}, {"shape", input_shape}});
      *graph.add_node() = MakeNode("b", "Placeholder", {},
                                   {{"dtype", DT_FLOAT}, {"shape", input_shape}});
      *graph.add_node() = MakeNode("c", "Placeholder", {},
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 08:24:16 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  6. pkg/kubelet/server/stats/volume_stat_calculator_test.go

    	volumes := map[string]volume.Volume{vol0: &fakeVolume{}, vol1: &fakeVolume{}, vol3: &fakeVolume{}}
    	mockStats.EXPECT().ListVolumesForPod(fakePod.UID).Return(volumes, true)
    	blockVolumes := map[string]volume.BlockVolume{vol2: &fakeBlockVolume{}}
    	mockStats.EXPECT().ListBlockVolumesForPod(fakePod.UID).Return(blockVolumes, true)
    
    	eventStore := make(chan string, 1)
    	fakeEventRecorder := record.FakeRecorder{
    		Events: eventStore,
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  7. pkg/kubelet/container/runtime_cache_test.go

    	ctx := context.Background()
    	runtime := &ctest.FakeRuntime{}
    	cache := NewTestRuntimeCache(runtime)
    
    	// Cache old pods.
    	oldpods := []*ctest.FakePod{{Pod: &Pod{ID: "1111"}}}
    	runtime.PodList = oldpods
    	cache.UpdateCacheWithLock()
    
    	// Update the runtime to new pods.
    	newpods := []*ctest.FakePod{{Pod: &Pod{ID: "1111"}}, {Pod: &Pod{ID: "2222"}}, {Pod: &Pod{ID: "3333"}}}
    	runtime.PodList = newpods
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Nov 05 13:02:13 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/plugins/interpodaffinity/plugin_test.go

    			newNode:      st.MakeNode().Name("node-a").Label("zone", "zone1").Obj(),
    			expectedHint: framework.Queue,
    		},
    		{
    			name:         "add a new node without matched topologyKey",
    			pod:          st.MakePod().Name("p").PodAffinityIn("service", "region", []string{"securityscan", "value2"}, st.PodAffinityWithRequiredReq).Obj(),
    			newNode:      st.MakeNode().Name("node-a").Label("zone", "zone1").Obj(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 03:08:44 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  9. pkg/scheduler/framework/plugins/noderesources/fit_test.go

    			requestedPod: st.MakePod().
    				Req(map[v1.ResourceName]string{"cpu": "3000", "memory": "5000"}).
    				Obj(),
    			nodes: []*v1.Node{
    				st.MakeNode().Name("node1").Capacity(map[v1.ResourceName]string{"cpu": "4000", "memory": "10000"}).Obj(),
    				st.MakeNode().Name("node2").Capacity(map[v1.ResourceName]string{"cpu": "6000", "memory": "10000"}).Obj(),
    			},
    			existingPods: []*v1.Pod{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 57.4K bytes
    - Viewed (0)
  10. pkg/kubelet/images/image_gc_manager_test.go

    	}
    	fakeRuntime.AllPodList = []*containertest.FakePod{
    		{Pod: &container.Pod{
    			Containers: []*container.Container{
    				makeContainer(0),
    				makeContainer(1),
    			},
    		}},
    	}
    
    	// Make 1 be more recently used than 0.
    	_, err := manager.detectImages(ctx, zero)
    	require.NoError(t, err)
    	fakeRuntime.AllPodList = []*containertest.FakePod{
    		{Pod: &container.Pod{
    			Containers: []*container.Container{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 15:38:20 UTC 2024
    - 29.2K bytes
    - Viewed (0)
Back to top