Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for initialPods (0.45 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/testing/watcher_tests.go

    	initialPods := []*example.Pod{}
    	ns := "ns-foo"
    	for _, initialPod := range []*example.Pod{makePod("1"), makePod("2"), makePod("3"), makePod("4"), makePod("5")} {
    		initialPod.Namespace = ns
    		out := &example.Pod{}
    		err := store.Create(ctx, computePodKey(initialPod), initialPod, out, 0)
    		require.NoError(t, err, "failed to add a pod: %v")
    		initialPods = append(initialPods, out)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  2. pkg/kube/krt/bench_test.go

    		n--
    		<-c
    	}
    }
    
    func BenchmarkControllers(b *testing.B) {
    	log.FindScope("krt").SetOutputLevel(log.InfoLevel)
    	watch.DefaultChanSize = 100_000
    	initialPods := []*v1.Pod{}
    	for i := 0; i < 1000; i++ {
    		initialPods = append(initialPods, &v1.Pod{
    			ObjectMeta: metav1.ObjectMeta{
    				Name:      fmt.Sprintf("pod-%d", i),
    				Namespace: fmt.Sprintf("ns-%d", i%2),
    				Labels: map[string]string{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 09 19:55:53 UTC 2024
    - 7K bytes
    - Viewed (0)
  3. pkg/scheduler/internal/queue/scheduling_queue_test.go

    		callback     func(t *testing.T, q *PriorityQueue)
    	}
    
    	tests := []struct {
    		name            string
    		queueingHintMap QueueingHintMapPerProfile
    		// initialPods is the initial Pods in the activeQ.
    		initialPods                  []*v1.Pod
    		actions                      []action
    		wantInFlightPods             []*v1.Pod
    		wantInFlightEvents           []interface{}
    		wantActiveQPodNames          []string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 146.9K bytes
    - Viewed (0)
  4. pkg/scheduler/schedule_one_test.go

    		assignedNodeName := fmt.Sprintf("node%d", random.Intn(initialNodeNumber))
    		initialPods = append(initialPods, st.MakePod().Name(podName).UID(podName).Node(assignedNodeName).Obj())
    	}
    
    	objs := []runtime.Object{&v1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: fakeNamespace}}}
    	objs = append(objs, initialNodes...)
    	objs = append(objs, initialPods...)
    	client := clientsetfake.NewSimpleClientset(objs...)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 128.1K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/normalization/KotlinApiClassExtractorTest.kt

        }
    
        private
        fun givenChangingClass(
            className: String,
            initialBody: String,
            initialAssertion: (ClassFixture) -> Unit,
            changedBody: String,
            changedAssertion: (ClassFixture) -> Unit
        ): ClassChangeFixture {
            val initialClass = compileClass(className, initialBody)
            initialAssertion(initialClass)
            val changedClass = compileClass(className, changedBody)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 26 19:59:56 UTC 2023
    - 12K bytes
    - Viewed (0)
  6. pkg/kubelet/kubelet_node_status.go

    func (kl *Kubelet) reconcileHugePageResource(initialNode, existingNode *v1.Node) bool {
    	requiresUpdate := updateDefaultResources(initialNode, existingNode)
    	supportedHugePageResources := sets.Set[string]{}
    
    	for resourceName := range initialNode.Status.Capacity {
    		if !v1helper.IsHugePageResourceName(resourceName) {
    			continue
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  7. pkg/kubelet/kubelet_node_status_test.go

    	cases := []struct {
    		name         string
    		initialNode  *v1.Node
    		existingNode *v1.Node
    		needsUpdate  bool
    		finalLabels  map[string]string
    	}{
    		{
    			name: "make sure default labels exist",
    			initialNode: &v1.Node{
    				ObjectMeta: metav1.ObjectMeta{
    					Labels: map[string]string{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 19:23:19 UTC 2024
    - 115.8K bytes
    - Viewed (0)
  8. pkg/registry/core/pod/storage/eviction_test.go

    		name              string
    		initialPod        bool
    		makeDeleteOptions func(*api.Pod) *metav1.DeleteOptions
    		expectErr         string
    	}{
    		{
    			name:              "simple",
    			initialPod:        true,
    			makeDeleteOptions: func(pod *api.Pod) *metav1.DeleteOptions { return &metav1.DeleteOptions{} },
    		},
    		{
    			name:              "missing",
    			initialPod:        false,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 09:26:37 UTC 2024
    - 40K bytes
    - Viewed (0)
  9. pkg/kubelet/kubelet_getters.go

    	return kl.containerRuntime
    }
    
    // GetNode returns the node info for the configured node name of this Kubelet.
    func (kl *Kubelet) GetNode() (*v1.Node, error) {
    	if kl.kubeClient == nil {
    		return kl.initialNode(context.TODO())
    	}
    	return kl.nodeLister.Get(string(kl.nodeName))
    }
    
    // getNodeAnyWay() must return a *v1.Node which is required by RunGeneralPredicates().
    // The *v1.Node is obtained as follows:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 00:48:07 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/endpoints/discovery/aggregated/handler_test.go

    	apis := fuzzAPIGroups(1, 3, 12)
    	manager.SetGroups(apis.Items)
    
    	// fetch the document once
    	initial, initialBody, _ := fetchPath(manager, "application/json", discoveryPath, "")
    	assert.NotEmpty(t, initial.Header.Get("ETag"), "ETag should be populated")
    	assert.NotEmpty(t, initialBody, "body should not be empty")
    
    	// Send another request with a wrong e-tag. The same response should
    	// get sent again
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 02 00:29:39 UTC 2024
    - 28.6K bytes
    - Viewed (0)
Back to top