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

Switch PodsHavingTooManyRestarts params to pointer

This commit is contained in:
Mike Dame
2020-05-06 10:48:36 -04:00
parent 78eef6c343
commit fa335c782f
7 changed files with 17 additions and 12 deletions

View File

@@ -176,7 +176,11 @@ func (in *StrategyParameters) DeepCopyInto(out *StrategyParameters) {
*out = make([]string, len(*in))
copy(*out, *in)
}
out.PodsHavingTooManyRestarts = in.PodsHavingTooManyRestarts
if in.PodsHavingTooManyRestarts != nil {
in, out := &in.PodsHavingTooManyRestarts, &out.PodsHavingTooManyRestarts
*out = new(PodsHavingTooManyRestarts)
**out = **in
}
return
}