- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for IsPodTerminating (0.24 sec)
-
pkg/controller/podgc/gc_controller.go
if phase := pod.Status.Phase; phase != v1.PodPending && phase != v1.PodRunning && phase != v1.PodUnknown { return true } return false } // isPodTerminating returns true if the pod is terminating. func isPodTerminating(pod *v1.Pod) bool { return pod.ObjectMeta.DeletionTimestamp != nil } func (gcc *PodGCController) gcTerminating(ctx context.Context, pods []*v1.Pod) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 13.3K bytes - Viewed (0) -
pkg/controller/controller_utils.go
func FilterTerminatingPods(pods []*v1.Pod) []*v1.Pod { var result []*v1.Pod for _, p := range pods { if IsPodTerminating(p) { result = append(result, p) } } return result } func CountTerminatingPods(pods []*v1.Pod) int32 { numberOfTerminatingPods := 0 for _, p := range pods { if IsPodTerminating(p) { numberOfTerminatingPods += 1 } } return int32(numberOfTerminatingPods) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 12 15:34:44 UTC 2024 - 47.6K bytes - Viewed (0)