- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for computePodKey (0.18 sec)
-
staging/src/k8s.io/apiserver/pkg/storage/cacher/lister_watcher_test.go
{ObjectMeta: metav1.ObjectMeta{Name: "baz", Namespace: "test-ns"}}, {ObjectMeta: metav1.ObjectMeta{Name: "foo", Namespace: "test-ns"}}, } for _, obj := range objects { out := &example.Pod{} key := computePodKey(obj) if err := store.Create(context.Background(), key, obj, out, 0); err != nil { t.Fatalf("Create failed: %v", err) } } lw := NewListerWatcher(store, prefix, fn, nil)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 04 11:51:06 UTC 2024 - 3.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_testing_utils_test.go
newPod, newPodList, prefix, "/pods", schema.GroupResource{Resource: "pods"}, identity.NewEncryptCheckTransformer(), etcd3.NewDefaultLeaseManagerConfig()) return server, storage } func computePodKey(obj *example.Pod) string { return fmt.Sprintf("/pods/%s/%s", obj.Namespace, obj.Name) } func compactStorage(c *Cacher, client *clientv3.Client) storagetesting.Compaction {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 20 20:43:52 UTC 2023 - 3.8K bytes - Viewed (0)