Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for computePodKey (0.12 sec)

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

    		storedObj *example.Pod
    	}{
    		{
    			key: computePodKey(barFirst),
    			obj: barFirst,
    		},
    		{
    			key: computePodKey(barSecond),
    			obj: barSecond,
    		},
    		{
    			key: computePodKey(fooSecond),
    			obj: fooSecond,
    		},
    		{
    			key: computePodKey(barfooThird),
    			obj: barfooThird,
    		},
    		{
    			key: computePodKey(fooThird),
    			obj: fooThird,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 91.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/testing/watcher_tests.go

    		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)
    	}
    
    	// add the pod to a different ns to advance the global RV
    	pod := makePod("1")
    	pod.Namespace = "other-ns-foo"
    	otherNsPod := &example.Pod{}
    	err := store.Create(ctx, computePodKey(pod), pod, otherNsPod, 0)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_whitebox_test.go

    	lastRV := uint64(0)
    	for i := 0; i < 5; i++ {
    		pod := &example.Pod{ObjectMeta: metav1.ObjectMeta{Name: fmt.Sprintf("foo-%d", i), Namespace: "test-ns"}}
    		out := &example.Pod{}
    		key := computePodKey(pod)
    		if err := etcdStorage.Create(context.Background(), key, pod, out, 0); err != nil {
    			t.Fatalf("Create failed: %v", err)
    		}
    		var err error
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 82.9K bytes
    - Viewed (0)
Back to top