Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for terminatingPod (0.24 sec)

  1. plugin/pkg/admission/limitranger/admission_test.go

    	// a pod that is undergoing termination should never be blocked
    	terminatingPod := validPod("terminatingPod", 1, api.ResourceRequirements{})
    	now := metav1.Now()
    	terminatingPod.DeletionTimestamp = &now
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  2. pkg/kubelet/pod_workers.go

    type PodWorkerState int
    
    const (
    	// SyncPod is when the pod is expected to be started and running.
    	SyncPod PodWorkerState = iota
    	// TerminatingPod is when the pod is no longer being set up, but some
    	// containers may be running and are being torn down.
    	TerminatingPod
    	// TerminatedPod indicates the pod is stopped, can have no more running
    	// containers, and any foreground cleanup can be executed.
    	TerminatedPod
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 02 13:22:37 UTC 2024
    - 74.8K bytes
    - Viewed (0)
  3. pkg/kubelet/kubelet_pods.go

    	for uid, sync := range workingPods {
    		switch sync.State {
    		case SyncPod:
    			runningPods[uid] = struct{}{}
    			possiblyRunningPods[uid] = struct{}{}
    		case TerminatingPod:
    			possiblyRunningPods[uid] = struct{}{}
    		default:
    		}
    	}
    
    	// Retrieve the list of running containers from the runtime to perform cleanup.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
  4. pkg/kubelet/pod_workers_test.go

    	state = podWorkers.SyncKnownPods([]*v1.Pod{
    		newNamedPod("8-static", "test1", "pod1", true),
    	})
    	drainAllWorkers(podWorkers)
    	if e, a := map[types.UID]PodWorkerSync{
    		"1-normal": {State: TerminatingPod, Orphan: true, HasConfig: true},
    		"8-static": {State: SyncPod, HasConfig: true, Static: true},
    	}, state; !reflect.DeepEqual(e, a) {
    		t.Fatalf("unexpected actual restartable: %s", cmp.Diff(e, a))
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 75.6K bytes
    - Viewed (0)
  5. pkg/controller/podgc/gc_controller.go

    				logger.V(4).Info("Garbage collecting pod that is terminating", "pod", klog.KObj(pod), "phase", pod.Status.Phase)
    				terminatingPods = append(terminatingPods, pod)
    			}
    		}
    	}
    
    	deleteCount := len(terminatingPods)
    	if deleteCount == 0 {
    		return
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  6. pkg/proxy/endpointslicecache_test.go

    	return endpointSlice
    }
    
    func generateEndpointSlice(serviceName, namespace string, sliceNum, numEndpoints, unreadyMod int, terminatingMod int, hosts []string, portNums []*int32) *discovery.EndpointSlice {
    	return generateEndpointSliceWithOffset(serviceName, namespace, sliceNum, sliceNum, numEndpoints, unreadyMod, terminatingMod, hosts, portNums)
    }
    
    // cacheMutationCheck helps ensure that cached objects have not been changed
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:07:21 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  7. pkg/controller/job/job_controller_test.go

    		pods = append(pods, newPod)
    	}
    	return pods
    }
    
    func setPodsStatuses(podIndexer cache.Indexer, job *batch.Job, pendingPods, activePods, succeededPods, failedPods, terminatingPods, readyPods int) {
    	for _, pod := range newPodList(pendingPods, v1.PodPending, job) {
    		podIndexer.Add(pod)
    	}
    	running := newPodList(activePods, v1.PodRunning, job)
    	for i, p := range running {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  8. pkg/controller/job/indexed_job_utils.go

    }
    
    // firstPendingIndexes returns `count` indexes less than `completions` that are
    // not covered by `activePods`, `succeededIndexes` or `failedIndexes`.
    // In cases of PodReplacementPolicy as Failed we will include `terminatingPods` in this list.
    func firstPendingIndexes(jobCtx *syncJobCtx, count, completions int) []int {
    	if count == 0 {
    		return nil
    	}
    	active := getIndexes(jobCtx.activePods)
    	result := make([]int, 0, count)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 21 00:44:53 UTC 2023
    - 17.5K bytes
    - Viewed (0)
  9. pkg/controller/controller_utils_test.go

    	podList.Items[3].SetDeletionTimestamp(&now)
    	var podPointers []*v1.Pod
    	for i := range podList.Items {
    		podPointers = append(podPointers, &podList.Items[i])
    	}
    
    	terminatingPods := CountTerminatingPods(podPointers)
    
    	assert.Equal(t, terminatingPods, int32(2))
    
    	terminatingList := FilterTerminatingPods(podPointers)
    	assert.Equal(t, len(terminatingList), int(2))
    }
    
    func TestActivePodFiltering(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  10. CHANGELOG/CHANGELOG-1.18.md

    - PodTopologySpread plugin now excludes terminatingPods when making scheduling decisions. ([#87845](https://github.com/kubernetes/kubernetes/pull/87845), [@Huang-Wei](https://github.com/Huang-Wei)) [SIG Scheduling]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 16 17:18:28 UTC 2021
    - 373.2K bytes
    - Viewed (0)
Back to top