Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for fakeNode (0.17 sec)

  1. pkg/volume/csi/testing/testing.go

    		t.Fatalf("can't create temp dir: %v", err)
    	}
    
    	if client == nil {
    		client = fakeclient.NewSimpleClientset()
    	}
    
    	client.Tracker().Add(&v1.Node{
    		ObjectMeta: metav1.ObjectMeta{
    			Name: "fakeNode",
    		},
    		Spec: v1.NodeSpec{},
    	})
    
    	// Start informer for CSIDrivers.
    	factory := informers.NewSharedInformerFactory(client, csi.CsiResyncPeriod)
    	csiDriverInformer := factory.Storage().V1().CSIDrivers()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 07 00:11:50 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  2. pkg/kubelet/prober/scale_test.go

    			).(*manager)
    			defer cleanup(t, m)
    
    			now := time.Now()
    			fakePods := make([]*fakePod, numTestPods)
    			for i := 0; i < numTestPods; i++ {
    				fake, err := newFakePod(tt.http)
    				if err != nil {
    					t.Fatalf("unexpected error creating fake pod: %v", err)
    				}
    				defer fake.stop()
    				handler := fake.probeHandler()
    				fakePods[i] = fake
    
    				pod := v1.Pod{
    					ObjectMeta: metav1.ObjectMeta{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 16 16:33:01 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/negotiation/negotiate_test.go

    			contentType: "application/json",
    			ns:          &fakeNegotiater{serializer: fakeCodec, types: []string{"application/json"}},
    			serializer:  fakeCodec,
    		},
    		{
    			accept:      "",
    			contentType: "application/json",
    			ns:          &fakeNegotiater{serializer: fakeCodec, types: []string{"application/json"}},
    			serializer:  fakeCodec,
    		},
    		{
    			accept:      "*/*",
    			contentType: "application/json",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 10 10:53:34 UTC 2019
    - 9K bytes
    - Viewed (0)
  4. pkg/controller/garbagecollector/graph_builder_test.go

    			name: "namespaced alternate version",
    			deps: []*node{
    				makeNode(ns1child1, withOwners(nsabsentparentns1)),
    				makeNode(ns1child2, withOwners(nsabsentparent_version)),
    			},
    			verifiedAbsent:    nsabsentparentns1,
    			expectedAlternate: &nsabsentparent_version, // switch to alternate version
    		},
    		{
    			name: "namespaced alternate kind",
    			deps: []*node{
    				makeNode(ns1child1, withOwners(nsabsentparentns1)),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 17 15:49:32 UTC 2020
    - 7.6K bytes
    - Viewed (0)
  5. pkg/registry/core/node/strategy_test.go

    			compareNode: makeNode(nil, false, true),
    		},
    		{
    			name:        "update with Spec.ConfigSource and Status.Config (old has them)",
    			node:        makeNode(nil, true, true),
    			oldNode:     makeNode(nil, true, true),
    			compareNode: makeNode(nil, true, true),
    		},
    		{
    			name:        "update with Spec.ConfigSource and Status.Config (old has Status.Config)",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. pkg/scheduler/framework/plugins/nodename/node_name_test.go

    		{
    			pod:  &v1.Pod{},
    			node: &v1.Node{},
    			name: "no host specified",
    		},
    		{
    			pod:  st.MakePod().Node("foo").Obj(),
    			node: st.MakeNode().Name("foo").Obj(),
    			name: "host matches",
    		},
    		{
    			pod:        st.MakePod().Node("bar").Obj(),
    			node:       st.MakeNode().Name("foo").Obj(),
    			name:       "host doesn't match",
    			wantStatus: framework.NewStatus(framework.UnschedulableAndUnresolvable, ErrReason),
    		},
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 20 09:49:54 UTC 2023
    - 1.8K bytes
    - Viewed (0)
Back to top