- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 92 for PodList (0.13 sec)
-
staging/src/k8s.io/apiserver/pkg/storage/cacher/lister_watcher_test.go
t.Fatalf("List failed: %v", err) } pl, ok := obj.(*example.PodList) if !ok { t.Fatalf("Expected PodList but got %v", pl) } if len(pl.Items) != 3 { t.Errorf("Expected PodList of length 3 but got %d", len(pl.Items)) } } func TestCacherListerWatcherPagination(t *testing.T) { prefix := "pods" fn := func() runtime.Object { return &example.PodList{} } server, store := newEtcdTestStorage(t, prefix)
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/apis/example/v1/zz_generated.deepcopy.go
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodList. func (in *PodList) DeepCopy() *PodList { if in == nil { return nil } out := new(PodList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *PodList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 4.4K bytes - Viewed (0) -
pkg/controller/controller_utils_test.go
rc := newReplicationController(0) podList := newPodList(nil, 7, v1.PodRunning, rc) podList.Items[0].Status.Phase = v1.PodSucceeded podList.Items[1].Status.Phase = v1.PodFailed podList.Items[2].Status.Phase = v1.PodPending podList.Items[2].SetDeletionTimestamp(&now) podList.Items[3].Status.Phase = v1.PodRunning podList.Items[3].SetDeletionTimestamp(&now) var podPointers []*v1.Pod
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 39.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/example/v1/zz_generated.conversion.go
}); err != nil { return err } if err := s.AddGeneratedConversionFunc((*PodList)(nil), (*example.PodList)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_PodList_To_example_PodList(a.(*PodList), b.(*example.PodList), scope) }); err != nil { return err } if err := s.AddGeneratedConversionFunc((*example.PodList)(nil), (*PodList)(nil), func(a, b interface{}, scope conversion.Scope) error {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 10.6K bytes - Viewed (0) -
src/internal/coverage/pods/pods_test.go
mkmeta(o2, "m1") mkcounter(o2, "m1", 11, 35) // Collect pods. podlist, err := pods.CollectPods([]string{o1, o2}, true) if err != nil { t.Fatal(err) } // Verify pods if len(podlist) != 2 { t.Fatalf("expected 2 pods got %d pods", len(podlist)) } for k, p := range podlist { t.Logf("%d: mf=%s\n", k, p.MetaFile) } expected := []string{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 31 14:00:17 UTC 2023 - 3.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/example/zz_generated.deepcopy.go
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodList. func (in *PodList) DeepCopy() *PodList { if in == nil { return nil } out := new(PodList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. func (in *PodList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 6.1K bytes - Viewed (0) -
pkg/kubelet/config/common_test.go
Status: v1.PodStatus{ PodIP: "1.2.3.4", PodIPs: []v1.PodIP{ { IP: "1.2.3.4", }, }, }, } podList := &v1.PodList{ Items: []v1.Pod{*pod}, } json, err := runtime.Encode(clientscheme.Codecs.LegacyCodec(v1.SchemeGroupVersion), podList) if err != nil { t.Errorf("unexpected error: %v", err) } parsed, podListOut, err := tryDecodePodList(json, noDefault) if !parsed {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 03 18:40:48 UTC 2023 - 8.7K bytes - Viewed (0) -
pkg/kubelet/container/runtime_cache_test.go
// 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 // An older timestamp should not force an update.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Nov 05 13:02:13 UTC 2022 - 2.2K bytes - Viewed (0) -
pkg/controller/podautoscaler/replica_calculator.go
podList, err := c.podLister.Pods(namespace).List(selector) if err != nil { return 0, fmt.Errorf("unable to get pods while calculating replica count: %v", err) } if len(podList) == 0 { return 0, fmt.Errorf("no pods returned by selector while calculating replica count") } readyPodCount := 0 for _, pod := range podList {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Aug 19 03:31:34 UTC 2023 - 20.1K bytes - Viewed (0) -
pkg/kubelet/userns/userns_manager_switch_test.go
testUserNsPodsManager := &testUserNsPodsManager{ podDir: t.TempDir(), // List the same pods we will record, so the second time we create the userns // manager, it will find these pods on disk with userns data. podList: pods, } m, err := MakeUserNsManager(testUserNsPodsManager) require.NoError(t, err) // Record the pods on disk. for _, podUID := range pods { pod := v1.Pod{ObjectMeta: metav1.ObjectMeta{UID: podUID}}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 5K bytes - Viewed (0)