Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for Pods (0.08 sec)

  1. pkg/kubelet/kubelet_test.go

    	pods[2].Spec.ActiveDeadlineSeconds = &exceededActiveDeadlineSeconds
    
    	kubelet.podManager.SetPods(pods)
    	kubelet.workQueue.Enqueue(pods[2].UID, 0)
    	kubelet.workQueue.Enqueue(pods[3].UID, 30*time.Second)
    	kubelet.workQueue.Enqueue(pods[4].UID, 2*time.Minute)
    
    	clock.Step(1 * time.Minute)
    
    	expected := []*v1.Pod{pods[2], pods[3], pods[0]}
    	podsToSync := kubelet.getPodsToSync()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  2. pkg/controller/job/job_controller_test.go

    						Failed: []types.UID{"a", "b"},
    					},
    				},
    			},
    			pods: func() []*v1.Pod {
    				pods := make([]*v1.Pod, 500)
    				for i := range pods {
    					pods[i] = buildPod().uid(strconv.Itoa(i)).phase(v1.PodSucceeded).trackingFinalizer().Pod
    				}
    				pods = append(pods, buildPod().uid("b").phase(v1.PodFailed).trackingFinalizer().Pod)
    				return pods
    			}(),
    			wantRmFinalizers: 499,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  3. pkg/scheduler/internal/queue/scheduling_queue_test.go

    	}{
    		{
    			name:      "create, update, delete subset of pods",
    			podsToAdd: []*v1.Pod{pods[0], pods[1], pods[2], pods[3]},
    			expectedMapAfterAdd: map[string]*framework.QueuedPodInfo{
    				util.GetPodFullName(pods[0]): {PodInfo: mustNewTestPodInfo(t, pods[0]), UnschedulablePlugins: sets.New[string]()},
    				util.GetPodFullName(pods[1]): {PodInfo: mustNewTestPodInfo(t, pods[1]), UnschedulablePlugins: sets.New[string]()},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 146.9K 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/kubelet/kubelet.go

    			handler.HandlePodUpdates(u.Pods)
    		case kubetypes.REMOVE:
    			klog.V(2).InfoS("SyncLoop REMOVE", "source", u.Source, "pods", klog.KObjSlice(u.Pods))
    			handler.HandlePodRemoves(u.Pods)
    		case kubetypes.RECONCILE:
    			klog.V(4).InfoS("SyncLoop RECONCILE", "source", u.Source, "pods", klog.KObjSlice(u.Pods))
    			handler.HandlePodReconcile(u.Pods)
    		case kubetypes.DELETE:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
  6. pkg/kubelet/kubelet_pods_test.go

    				// that pod to the pod worker so that it restarts.
    				metrics.RestartedPodTotal.FQName(): `# HELP kubelet_restarted_pods_total [ALPHA] Number of pods that have been restarted because they were deleted and recreated with the same UID while the kubelet was watching them (common for static pods, extremely uncommon for API pods)
    				# TYPE kubelet_restarted_pods_total counter
    				kubelet_restarted_pods_total{static=""} 1
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 198.8K bytes
    - Viewed (0)
  7. pkg/scheduler/schedule_one_test.go

    	}
    	go sched.Run(ctx)
    
    	// Send pods to be scheduled.
    	for _, p := range pods {
    		_, err := client.CoreV1().Pods("").Create(ctx, p, metav1.CreateOptions{})
    		if err != nil {
    			t.Fatal(err)
    		}
    	}
    	wg.Wait()
    
    	// Verify correct bindings and reporting controllers.
    	if diff := cmp.Diff(wantBindings, bindings); diff != "" {
    		t.Errorf("pods were scheduled incorrectly (-want, +got):\n%s", diff)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 128.1K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    		}
    	}
    
    	// Delete all pods.
    	deleted, err := registry.DeleteCollection(testContext, rest.ValidateAllObjectFunc, nil, &metainternalversion.ListOptions{})
    	if err != nil {
    		t.Fatalf("Unexpected error: %v", err)
    	}
    	deletedPods := deleted.(*example.PodList)
    	if len(deletedPods.Items) != numPods {
    		t.Errorf("Unexpected number of pods deleted: %d, expected: %d", len(deletedPods.Items), numPods)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  9. cluster/gce/gci/configure-helper.sh

      fi
    
      log-start 'SetupKubePodLogReadersGroupDir'
      if [[ -n "${KUBE_POD_LOG_READERS_GROUP:-}" ]]; then
         mkdir -p /var/log/pods/
         chgrp -R "${KUBE_POD_LOG_READERS_GROUP:-}" /var/log/pods/
         chmod -R g+s /var/log/pods/
      fi
      log-end 'SetupKubePodLogReadersGroupDir'
    
      # Note prepare-mounter-rootfs must be called before the kubelet starts, as
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 22:07:47 UTC 2024
    - 141.1K bytes
    - Viewed (0)
  10. pkg/printers/internalversion/printers_test.go

    					MinReplicas: &minReplicasVal,
    					MaxReplicas: 10,
    					Metrics: []autoscaling.MetricSpec{
    						{
    							Type: autoscaling.PodsMetricSourceType,
    							Pods: &autoscaling.PodsMetricSource{
    								Metric: autoscaling.MetricIdentifier{
    									Name: "some-pods-metric",
    								},
    								Target: autoscaling.MetricTarget{
    									Type:         autoscaling.AverageValueMetricType,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 218.6K bytes
    - Viewed (0)
Back to top