Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 78 for Pods (0.04 sec)

  1. staging/src/k8s.io/api/apps/v1/types.go

    	// 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.
    	// +optional
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 49.1K bytes
    - Viewed (0)
  2. pkg/controller/job/job_controller.go

    	// When adopting Pods, this operation adds an ownerRef and finalizers.
    	pods, err = cm.ClaimPods(ctx, pods)
    	if err != nil {
    		return pods, err
    	}
    	// Set finalizer on adopted pods for the remaining calculations.
    	for i, p := range pods {
    		adopted := true
    		for _, r := range p.OwnerReferences {
    			if r.UID == j.UID {
    				adopted = false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 23:56:37 UTC 2024
    - 77.6K bytes
    - Viewed (0)
  3. pkg/controller/replicaset/replica_set_test.go

    	pods := newPodList(nil, 2, v1.PodPending, labelMap, rsSpec, "pod")
    	informers.Core().V1().Pods().Informer().GetIndexer().Add(&pods.Items[0])
    	postExpectationsPod := pods.Items[1]
    
    	manager.expectations = controller.NewUIDTrackingControllerExpectations(FakeRSExpectations{
    		controller.NewControllerExpectations(), true, func() {
    			// If we check active pods before checking expectataions, the
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 69.2K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/defaultpreemption/default_preemption_test.go

    			podInformer := informerFactory.Core().V1().Pods().Informer()
    			podInformer.GetStore().Add(test.pod)
    			for i := range test.pods {
    				podInformer.GetStore().Add(test.pods[i])
    			}
    
    			deletedPodNames := sets.New[string]()
    			patchedPodNames := sets.New[string]()
    			client.PrependReactor("patch", "pods", func(action clienttesting.Action) (bool, runtime.Object, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  5. pkg/scheduler/internal/queue/scheduling_queue.go

    }
    
    // NominatedPodsForNode returns a copy of pods that are nominated to run on the given node,
    // but they are waiting for other pods to be removed from the node.
    func (npm *nominator) NominatedPodsForNode(nodeName string) []*framework.PodInfo {
    	npm.lock.RLock()
    	defer npm.lock.RUnlock()
    	// Make a copy of the nominated Pods so the caller can mutate safely.
    	pods := make([]*framework.PodInfo, len(npm.nominatedPods[nodeName]))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 61.4K bytes
    - Viewed (0)
  6. pkg/controller/disruption/disruption_test.go

    	pods := []*v1.Pod{}
    	for i := int32(0); i < 4; i++ {
    		ps.VerifyPdbStatus(t, pdbName, 0, i, 3, i, map[string]metav1.Time{})
    		pod, _ := newPod(t, fmt.Sprintf("yo-yo-yo %d", i))
    		pods = append(pods, pod)
    		add(t, dc.podStore, pod)
    		dc.sync(ctx, pdbName)
    	}
    	ps.VerifyPdbStatus(t, pdbName, 1, 4, 3, 4, map[string]metav1.Time{})
    
    	// Now set one pod as unavailable
    	pods[0].Status.Conditions = []v1.PodCondition{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 50K bytes
    - Viewed (0)
  7. pkg/controller/daemon/daemon_controller.go

    		return nil, err
    	}
    
    	// List all pods to include those that don't match the selector anymore but
    	// have a ControllerRef pointing to this controller.
    	pods, err := dsc.podLister.Pods(ds.Namespace).List(labels.Everything())
    	if err != nil {
    		return nil, err
    	}
    	// If any adoptions are attempted, we should first recheck for deletion with
    	// an uncached quorum read sometime after listing Pods (see #42639).
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 51.3K bytes
    - Viewed (0)
  8. 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)
  9. plugin/pkg/admission/resourcequota/admission_test.go

    	if err == nil {
    		t.Errorf("Expected an error because the pod exceeded allowed quota")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:28:42 UTC 2024
    - 84.1K bytes
    - Viewed (0)
  10. pkg/kubelet/pod_workers.go

    // podWorkers keeps track of operations on pods and ensures each pod is
    // reconciled with the container runtime and other subsystems. The worker
    // also tracks which pods are in flight for starting, which pods are
    // shutting down but still have running containers, and which pods have
    // terminated recently and are guaranteed to have no running containers.
    //
    // podWorkers is the source of truth for what pods should be active on a
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 02 13:22:37 UTC 2024
    - 74.8K bytes
    - Viewed (0)
Back to top