From 0fd737adc28e8d68d726c56a622c46e1fdc54d9d Mon Sep 17 00:00:00 2001 From: mentlak Date: Mon, 18 Nov 2024 15:21:50 +0000 Subject: [PATCH] fix: pdb template values --- charts/prometheus/templates/pdb.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/prometheus/templates/pdb.yaml b/charts/prometheus/templates/pdb.yaml index 7ffe67307116..eacd51dcb326 100644 --- a/charts/prometheus/templates/pdb.yaml +++ b/charts/prometheus/templates/pdb.yaml @@ -11,5 +11,10 @@ spec: selector: matchLabels: {{- include "prometheus.server.matchLabels" . | nindent 6 }} - {{- toYaml $pdbSpec | nindent 2 }} + {{- if $pdbSpec.minAvailable }} + minAvailable: {{ $pdbSpec.minAvailable }} + {{- end }} + {{- if $pdbSpec.maxUnavailable }} + maxUnavailable: {{ $pdbSpec.maxUnavailable }} + {{- end }} {{- end }}