From d14df1fedf5641c077aeddd503ee3c5b5ba95d3c Mon Sep 17 00:00:00 2001 From: Storm Galloway Date: Wed, 7 Sep 2022 14:10:54 -0500 Subject: [PATCH] feat: add RemovePodsHavingTooManyRestarts to yaml This does the following: 1. Enables RemovePodsHavingTooManyRestarts when using Helm by default (it is not currently) 2. Adds RemovePodsHavingTooManyRestarts to the values.yaml for clearer configs --- charts/descheduler/values.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/charts/descheduler/values.yaml b/charts/descheduler/values.yaml index 330ff9275..8a2e5ad4d 100644 --- a/charts/descheduler/values.yaml +++ b/charts/descheduler/values.yaml @@ -67,6 +67,12 @@ deschedulerPolicy: strategies: RemoveDuplicates: enabled: true + RemovePodsHavingTooManyRestarts: + enabled: true + params: + podsHavingTooManyRestarts: + podRestartThreshold: 100 + includingInitContainers: true RemovePodsViolatingNodeTaints: enabled: true RemovePodsViolatingNodeAffinity: