From c2782a3e8c9dc327491b80c606f4d07046c25ecc Mon Sep 17 00:00:00 2001 From: Michel Loiseleur Date: Fri, 3 Jan 2025 09:04:39 +0100 Subject: [PATCH] feat(PodDisruptionBudget): add support for unhealthyPodEvictionPolicy --- charts/grafana/templates/poddisruptionbudget.yaml | 3 +++ charts/grafana/values.yaml | 1 + 2 files changed, 4 insertions(+) diff --git a/charts/grafana/templates/poddisruptionbudget.yaml b/charts/grafana/templates/poddisruptionbudget.yaml index 05251214ac..c2264acf1e 100644 --- a/charts/grafana/templates/poddisruptionbudget.yaml +++ b/charts/grafana/templates/poddisruptionbudget.yaml @@ -19,4 +19,7 @@ spec: selector: matchLabels: {{- include "grafana.selectorLabels" . | nindent 6 }} + {{- with .Values.podDisruptionBudget.unhealthyPodEvictionPolicy }} + unhealthyPodEvictionPolicy: {{ . }} + {{- end }} {{- end }} diff --git a/charts/grafana/values.yaml b/charts/grafana/values.yaml index 5095c37441..0bf4b0e800 100644 --- a/charts/grafana/values.yaml +++ b/charts/grafana/values.yaml @@ -70,6 +70,7 @@ podDisruptionBudget: {} # apiVersion: "" # minAvailable: 1 # maxUnavailable: 1 +# unhealthyPodEvictionPolicy: IfHealthyBudget ## See `kubectl explain deployment.spec.strategy` for more ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy