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

Move CrashLoopBackOff container state from PodLifeTime to TooManyRestarts plugin

This commit is contained in:
Amir Alavi
2023-06-07 21:30:13 -04:00
parent 9aad51f328
commit 0bdbf51eb2
10 changed files with 201 additions and 3 deletions

View File

@@ -41,6 +41,11 @@ func (in *RemovePodsHavingTooManyRestartsArgs) DeepCopyInto(out *RemovePodsHavin
*out = new(v1.LabelSelector)
(*in).DeepCopyInto(*out)
}
if in.States != nil {
in, out := &in.States, &out.States
*out = make([]string, len(*in))
copy(*out, *in)
}
return
}