- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 73 for PodList (0.16 sec)
-
pkg/kubelet/server/server.go
response.WriteError(http.StatusBadRequest, err) return } } // encodePods creates an v1.PodList object from pods and returns the encoded // PodList. func encodePods(pods []*v1.Pod) (data []byte, err error) { podList := new(v1.PodList) for _, pod := range pods { podList.Items = append(podList.Items, *pod) } // TODO: this needs to be parameterized to the kubelet, not hardcoded. Depends on Kubelet
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 40.1K bytes - Viewed (0) -
pkg/controller/podgc/gc_controller_test.go
func setupNewSimpleClient(nodes []*v1.Node, pods []*v1.Pod) *fake.Clientset { podList := &v1.PodList{} for _, podItem := range pods { podList.Items = append(podList.Items, *podItem) } nodeList := &v1.NodeList{} for _, nodeItem := range nodes { nodeList.Items = append(nodeList.Items, *nodeItem) } return fake.NewSimpleClientset(nodeList, podList) } func getDeletedPodNames(client *fake.Clientset) sets.Set[string] {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 08:16:48 UTC 2024 - 29K bytes - Viewed (0) -
istioctl/pkg/kubeinject/kubeinject.go
sortBy := func(pods []*corev1.Pod) sort.Interface { return sort.Reverse(podutils.ActivePods(pods)) } podList, err := client.Pods(namespace).List(context.TODO(), options) if err != nil { return nil, err } pods := make([]*corev1.Pod, 0, len(podList.Items)) for i := range podList.Items { pod := podList.Items[i] pods = append(pods, &pod) } if len(pods) > 0 { sort.Sort(sortBy(pods))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Mar 29 02:29:02 UTC 2024 - 21.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/example/v1/generated.proto
// +optional optional string reason = 5; // Human-readable message indicating details about last transition. // +optional optional string message = 6; } // PodList is a list of Pods. message PodList { // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds // +optional
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 28 15:34:11 UTC 2024 - 7.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/testing/watcher_tests.go
// initialRV is used to initate the watcher at the beginning of the world. podList := example.PodList{} options := storage.ListOptions{ Predicate: storage.Everything, Recursive: true, } if err := store.GetList(ctx, "/pods", options, &podList); err != nil { t.Fatalf("Failed to list pods: %v", err) } initialRV := podList.ResourceVersion options = storage.ListOptions{ ResourceVersion: initialRV,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 63.8K bytes - Viewed (0) -
pkg/controller/serviceaccount/legacy_serviceaccount_token_cleaner.go
if secrets, ok := namespaceToUsedSecretNames[secretNamespace]; ok { return secrets, nil } podList, err := tc.podLister.Pods(secretNamespace).List(labels.Everything()) if err != nil { return nil, fmt.Errorf("failed to get pod list from pod cache: %v", err) } var secrets sets.String for _, pod := range podList { podutil.VisitPodSecretNames(pod, func(secretName string) bool { if secrets == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 27 03:52:06 UTC 2023 - 10K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/example/v1/types.go
// +optional SchedulerName string `json:"schedulername,omitempty" protobuf:"bytes,19,opt,name=schedulername"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // PodList is a list of Pods. type PodList struct { metav1.TypeMeta `json:",inline"` // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds // +optional
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 20 15:45:02 UTC 2024 - 9.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_testing_utils_test.go
utilruntime.Must(examplev1.AddToScheme(scheme)) utilruntime.Must(example2v1.AddToScheme(scheme)) } func newPod() runtime.Object { return &example.Pod{} } func newPodList() runtime.Object { return &example.PodList{} } func newEtcdTestStorage(t *testing.T, prefix string) (*etcd3testing.EtcdTestServer, storage.Interface) { server, _ := etcd3testing.NewUnsecuredEtcd3TestClientServer(t) storage := etcd3.New( server.V3Client,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 20 20:43:52 UTC 2023 - 3.8K bytes - Viewed (0) -
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) -
pkg/controller/volume/attachdetach/attach_detach_controller_test.go
i++ } i = 0 podList, err := informerFactory.Core().V1().Pods().Lister().List(labels.Everything()) for len(podList) < podsNum { if err != nil { t.Fatalf("Error getting list of nodes %v", err) } if i > 100 { t.Fatalf("Time out while waiting for the pod informer sync: found %d pods, expected %d pods", len(podList), podsNum) } time.Sleep(100 * time.Millisecond)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 11:00:37 UTC 2024 - 24.2K bytes - Viewed (0)