[stable/prometheus-blackbox-exporter] Add option to enable/disable PodDisruptionBudget. (#18235)

Signed-off-by: Cédric de Saint Martin <cdesaintmartin@wiremind.fr>
This commit is contained in:
Cédric de Saint Martin
2019-10-23 05:58:13 -07:00
committed by Kubernetes Prow Robot
parent 6d7c371d4c
commit d03b6ddac8
3 changed files with 4 additions and 1 deletions
@@ -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:
@@ -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 }}
@@ -1,6 +1,7 @@
restartPolicy: Always
podDisruptionBudget:
enabled: true
maxUnavailable: 0
strategy: