- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for fakePod2 (0.23 sec)
-
pkg/kubelet/kubelet_test.go
ID: "abc1234", } fakePod := &containertest.FakePod{ Pod: &kubecontainer.Pod{ ID: "12345678", Name: "podFoo", Namespace: "nsFoo", Containers: []*kubecontainer.Container{ { Name: "containerFoo", ID: containerID, }, }, }, } fakeRuntime.PodList = []*containertest.FakePod{fakePod} wrongContainerName := "wrongContainerName"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 14 16:09:17 UTC 2024 - 106.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_whitebox_test.go
func(b *testing.B) { // create sample pods fakePods := make([]example.Pod, tc.totalObjectNum, tc.totalObjectNum) for i := range fakePods { fakePods[i].Namespace = "default" fakePods[i].Name = fmt.Sprintf("pod-%d", i) fakePods[i].ResourceVersion = strconv.Itoa(i) if i%(tc.totalObjectNum/tc.expectObjectNum) == 0 { fakePods[i].Spec.NodeName = "node-0" }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 10:12:02 UTC 2024 - 82.9K bytes - Viewed (0) -
pkg/kubelet/kubelet_pods_test.go
testKubelet := newTestKubelet(t, false /* controllerAttachDetachEnabled */) defer testKubelet.Cleanup() kubelet := testKubelet.kubelet fakeRuntime := testKubelet.fakeRuntime fakeRuntime.PodList = []*containertest.FakePod{} podName := "podFoo" podNamespace := "nsFoo" containerName := "containerFoo" output, err := kubelet.RunInContainer( ctx,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 00:05:23 UTC 2024 - 198.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/testing/store_tests.go
prefix: "/pods", pred: storage.SelectionPredicate{ Field: fields.OneTermEqualSelector("spec.nodeName", "fakeNode"), Label: labels.Everything(), Limit: 5, }, rv: list.ResourceVersion, rvMatch: metav1.ResourceVersionMatchNotOlderThan, expectedOut: []example.Pod{*preset[0]}, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 12:45:33 UTC 2024 - 91.4K bytes - Viewed (0)