1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-26 21:31:18 +01:00

PodLifeTime: consider pods with container status ImagePullBackOff

Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
This commit is contained in:
Amir Alavi
2023-12-18 09:55:27 -05:00
parent 14b67000d6
commit 8a06ed32e2
3 changed files with 50 additions and 3 deletions

View File

@@ -50,6 +50,9 @@ func ValidatePodLifeTimeArgs(obj runtime.Object) error {
// Container state reasons: https://github.com/kubernetes/kubernetes/blob/release-1.24/pkg/kubelet/kubelet_pods.go#L76-L79
"PodInitializing",
"ContainerCreating",
// containerStatuses[*].state.waiting.reason: ImagePullBackOff
"ImagePullBackOff",
)
if !podLifeTimeAllowedStates.HasAll(args.States...) {