Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 175 for podrest (0.11 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/etcd3/linearized_read_test.go

    			t.Fatalf("failed to get key: %v", err)
    		}
    	}
    
    	list := &example.PodList{}
    	if err := store.GetList(ctx, dir, storage.ListOptions{Predicate: storage.Everything, Recursive: true}, list); err != nil {
    		t.Errorf("Unexpected List error: %v", err)
    	}
    	finalRevision := list.ResourceVersion
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 20:08:59 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top