Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 914 for Pods (0.09 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/testing/store_tests.go

    	podCount := 1000
    	var pods []*example.Pod
    	for i := 0; i < podCount; i++ {
    		obj := &example.Pod{ObjectMeta: metav1.ObjectMeta{Name: fmt.Sprintf("pod-%d", i)}}
    		key := computePodKey(obj)
    		storedObj := &example.Pod{}
    		err := store.Create(ctx, key, obj, storedObj, 0)
    		if err != nil {
    			t.Fatalf("Set failed: %v", err)
    		}
    		pods = append(pods, storedObj)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 91.4K bytes
    - Viewed (0)
  2. pkg/kubelet/pleg/generic_test.go

    	pleg := newTestGenericPLEGWithRuntimeMock(runtimeMock)
    	ch := pleg.Watch()
    
    	pods, statuses, events := createTestPodsStatusesAndEvents(2)
    	runtimeMock.EXPECT().GetPods(ctx, true).Return(pods, nil).AnyTimes()
    	runtimeMock.EXPECT().GetPodStatus(ctx, pods[0].ID, "", "").Return(statuses[0], nil).Times(1)
    	// Inject an error when querying runtime for the pod status for pods[1].
    	statusErr := fmt.Errorf("unable to get status")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  3. pkg/controller/garbagecollector/garbagecollector_test.go

    			"GET" + "/api/v1/namespaces/ns1/pods/rc1Pod1": {
    				200,
    				serilizeOrDie(t, rc1Pod1),
    			},
    			"GET" + "/api/v1/namespaces/ns1/pods/rc1Pod2": {
    				200,
    				serilizeOrDie(t, rc1Pod2),
    			},
    			"GET" + "/api/v1/namespaces/ns1/pods/rc2Pod1": {
    				200,
    				serilizeOrDie(t, rc2Pod1),
    			},
    			"GET" + "/api/v1/namespaces/ns1/pods/rc3Pod1": {
    				200,
    				serilizeOrDie(t, rc3Pod1),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  4. pkg/kubelet/kubelet_pods.go

    }
    
    // Get a list of pods that have data directories.
    func (kl *Kubelet) listPodsFromDisk() ([]types.UID, error) {
    	podInfos, err := os.ReadDir(kl.getPodsDir())
    	if err != nil {
    		return nil, err
    	}
    	pods := []types.UID{}
    	for i := range podInfos {
    		if podInfos[i].IsDir() {
    			pods = append(pods, types.UID(podInfos[i].Name()))
    		}
    	}
    	return pods, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
  5. pkg/scheduler/util/pod_resources.go

    // of computing priority only. This ensures that when scheduling zero-request pods, such
    // pods will not all be scheduled to the node with the smallest in-use request,
    // and that when scheduling regular pods, such pods will not see zero-request pods as
    // consuming no resources whatsoever. We chose these values to be similar to the
    // resources that we give to cluster addon pods (#10653). But they are pretty arbitrary.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 01 06:25:30 UTC 2023
    - 3K bytes
    - Viewed (0)
  6. pkg/controller/daemon/update_test.go

    	manager.dsStore.Update(ds)
    
    	// all old pods are unavailable so should be surged
    	manager.failedPodsBackoff.Clock = testingclock.NewFakeClock(time.Unix(100, 0))
    	clearExpectations(t, manager, ds, podControl)
    	expectSyncDaemonSets(t, manager, ds, podControl, 5, 0, 0)
    
    	// waiting for pods to go ready, old pods are deleted
    	manager.failedPodsBackoff.Clock = testingclock.NewFakeClock(time.Unix(200, 0))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Feb 10 21:10:35 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/extensions/v1beta1/generated.proto

      // can have their pods stopped for an update at any given time. The update
      // starts by stopping at most 30% of those DaemonSet pods and then brings
      // up new DaemonSet pods in their place. Once the new pods are available,
      // it then proceeds onto other DaemonSet pods, thus ensuring that at least
      // 70% of original number of DaemonSet pods are available at all times during
      // the update.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 45.4K bytes
    - Viewed (0)
  8. cni/pkg/util/podutil.go

    func AnnotateEnrolledPod(client kubernetes.Interface, pod *metav1.ObjectMeta) error {
    	_, err := client.CoreV1().
    		Pods(pod.Namespace).
    		Patch(
    			context.Background(),
    			pod.Name,
    			types.MergePatchType,
    			annotationPatch,
    			metav1.PatchOptions{},
    			// Both "pods" and "pods/status" can mutate the metadata. However, pods/status is lower privilege, so we use that instead.
    			"status",
    		)
    	return err
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 17:18:11 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/endpoints/metrics/metrics_test.go

    		isMutating  bool
    		want        string
    	}{
    		{
    			desc: "list pods",
    			request: &http.Request{
    				Method: "GET",
    				URL: &url.URL{
    					RawPath: "/api/v1/pods",
    				},
    			},
    			requestInfo: &request.RequestInfo{
    				Verb:              "list",
    				APIGroup:          "",
    				APIVersion:        "v1",
    				Resource:          "pods",
    				IsResourceRequest: true,
    			},
    			isMutating: false,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 07:29:19 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  10. tools/bug-report/pkg/config/config.go

    		}
    		if !defaultListSetting(ss.Deployments) {
    			st += fmt.Sprintf("/Deployments: %s", strings.Join(ss.Deployments, ","))
    		}
    		if !defaultListSetting(ss.Pods) {
    			st += fmt.Sprintf("/Pods:%s", strings.Join(ss.Pods, ","))
    		}
    		if !defaultListSetting(ss.Containers) {
    			st += fmt.Sprintf("/Containers: %s", strings.Join(ss.Containers, ","))
    		}
    		if len(ss.Labels) > 0 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Nov 04 12:07:50 UTC 2023
    - 9.3K bytes
    - Viewed (0)
Back to top