From d03b6ddac8244841f8376ad5f71b870331e888ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20de=20Saint=20Martin?= Date: Wed, 23 Oct 2019 14:58:13 +0200 Subject: [PATCH] [stable/prometheus-blackbox-exporter] Add option to enable/disable PodDisruptionBudget. (#18235) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Cédric de Saint Martin --- stable/prometheus-blackbox-exporter/Chart.yaml | 2 +- .../templates/poddisruptionbudget.yaml | 2 ++ stable/prometheus-blackbox-exporter/values.yaml | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/stable/prometheus-blackbox-exporter/Chart.yaml b/stable/prometheus-blackbox-exporter/Chart.yaml index a789dd23fd..f18e1bef5e 100644 --- a/stable/prometheus-blackbox-exporter/Chart.yaml +++ b/stable/prometheus-blackbox-exporter/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 description: Prometheus Blackbox Exporter name: prometheus-blackbox-exporter -version: 1.3.1 +version: 1.4.0 appVersion: 0.15.1 home: https://github.com/prometheus/blackbox_exporter sources: diff --git a/stable/prometheus-blackbox-exporter/templates/poddisruptionbudget.yaml b/stable/prometheus-blackbox-exporter/templates/poddisruptionbudget.yaml index 8d54718ed0..7bbde57d7f 100644 --- a/stable/prometheus-blackbox-exporter/templates/poddisruptionbudget.yaml +++ b/stable/prometheus-blackbox-exporter/templates/poddisruptionbudget.yaml @@ -1,3 +1,4 @@ +{{- if .Values.podDisruptionBudget.enabled -}} apiVersion: policy/v1beta1 kind: PodDisruptionBudget metadata: @@ -15,3 +16,4 @@ spec: app.kubernetes.io/managed-by: {{ .Release.Service }} helm.sh/chart: {{ include "prometheus-blackbox-exporter.chart" . }} {{ toYaml .Values.podDisruptionBudget | indent 2 }} +{{- end }} diff --git a/stable/prometheus-blackbox-exporter/values.yaml b/stable/prometheus-blackbox-exporter/values.yaml index 9777a5e5e7..618baa3755 100644 --- a/stable/prometheus-blackbox-exporter/values.yaml +++ b/stable/prometheus-blackbox-exporter/values.yaml @@ -1,6 +1,7 @@ restartPolicy: Always podDisruptionBudget: + enabled: true maxUnavailable: 0 strategy: