mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-28 14:41:10 +01:00
Ignore Pods With Deletion Timestamp
This commit is contained in:
@@ -89,6 +89,11 @@ func IsMirrorPod(pod *v1.Pod) bool {
|
||||
return ok
|
||||
}
|
||||
|
||||
// IsPodTerminating returns true if the pod DeletionTimestamp is set.
|
||||
func IsPodTerminating(pod *v1.Pod) bool {
|
||||
return pod.DeletionTimestamp != nil
|
||||
}
|
||||
|
||||
// IsStaticPod returns true if the pod is a static pod.
|
||||
func IsStaticPod(pod *v1.Pod) bool {
|
||||
source, err := GetPodSource(pod)
|
||||
|
||||
Reference in New Issue
Block a user