1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-26 13:29:11 +01:00

Revert "Merge pull request #1164 from a7i/podlifetime-CrashLoopBackOff"

This reverts commit 699297711a, reversing
changes made to 877d9b18ee.
This commit is contained in:
Amir Alavi
2023-06-07 21:00:47 -04:00
parent 699297711a
commit 9aad51f328
2 changed files with 2 additions and 13 deletions

View File

@@ -44,14 +44,12 @@ func ValidatePodLifeTimeArgs(obj runtime.Object) error {
}
}
podLifeTimeAllowedStates := sets.New(
// Pod phase reasons
string(v1.PodRunning),
string(v1.PodPending),
// Container state reasons
// Container state reasons: https://github.com/kubernetes/kubernetes/blob/release-1.24/pkg/kubelet/kubelet_pods.go#L76-L79
"PodInitializing",
"ContainerCreating",
"CrashLoopBackOff",
)
if !podLifeTimeAllowedStates.HasAll(args.States...) {