- Sort Score
- Result 10 results
- Languages All
Results 31 - 35 of 35 for PodList (0.12 sec)
-
pkg/kube/kclient/clienttest/direct.go
// However, NewDirectClient can be useful if we do not need/want an informer and need direct reads. // Generic parameters represent the type with and without a pointer, and the list type. // Example: NewDirectClient[*Pod, Pod, PodList] func NewDirectClient[T controllers.ComparableObject, PT any, TL runtime.Object](t test.Failer, c kube.Client) TestClient[T] { return WrapReadWriter[T](t, &directClient[T, PT, TL]{ t: t, client: c,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Aug 08 16:43:05 UTC 2023 - 3K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/printers/bench_test.go
"k8s.io/client-go/kubernetes/scheme" ) func newBenchmarkList() *unstructured.UnstructuredList { list := &unstructured.UnstructuredList{ Object: map[string]interface{}{ "apiVersion": "v1", "kind": "PodList", }, Items: []unstructured.Unstructured{}, } for i := 0; i < 1000; i++ { list.Items = append(list.Items, unstructured.Unstructured{ Object: map[string]interface{}{ "apiVersion": "v1",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 30 00:36:07 UTC 2022 - 4.2K bytes - Viewed (0) -
pkg/kubelet/config/file_linux.go
} } }, retryPeriod) } func (s *sourceFile) doWatch() error { _, err := os.Stat(s.path) if err != nil { if !os.IsNotExist(err) { return err } // Emit an update with an empty PodList to allow FileSource to be marked as seen s.updates <- kubetypes.PodUpdate{Pods: []*v1.Pod{}, Op: kubetypes.SET, Source: kubetypes.FileSource} return &retryableError{"path does not exist, ignoring"} }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 02 17:27:26 UTC 2023 - 3.8K bytes - Viewed (0) -
src/internal/coverage/cfile/testsupport.go
// expect to see a single pod here, but allow for multiple pods in // case the test harness is doing extra work to collect data files // from builds that it kicks off as part of the testing. podlist, err := pods.CollectPods([]string{dir}, false) if err != nil { return fmt.Errorf("reading from %s: %v", dir, err) } // Open text output file if appropriate. var tf *os.File var tfClosed bool
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 09:57:47 UTC 2024 - 8.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/response_test.go
t.Errorf("unexpected result: %#v, expected: %#v", a, e) } }) } } func TestAsPartialObjectMetadataList(t *testing.T) { var remainingItemCount int64 = 10 pods := &examplev1.PodList{ ListMeta: metav1.ListMeta{ ResourceVersion: "10", Continue: "continuetoken", RemainingItemCount: &remainingItemCount, }, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 18 09:07:03 UTC 2023 - 6.4K bytes - Viewed (0)