From 3eb061f7bd22a63c86a76dd0a96d13a62c981aaa Mon Sep 17 00:00:00 2001 From: CarstenSon Date: Fri, 31 Jan 2025 22:19:41 +0100 Subject: [PATCH] [prometheus-blackbox-exporter] feat: add revisionHistoryLimit as a value to blackbox-exporter helmchart (#5250) * feat: add revisionHistoryLimit as a value to blackbox-exporter helmchart Signed-off-by: Carsten Sonyi * docs: add context to value revisionHistoryLimit Signed-off-by: Carsten Sonyi * feat: bump chart version Signed-off-by: Carsten Sonyi --------- Signed-off-by: Carsten Sonyi --- charts/prometheus-blackbox-exporter/Chart.yaml | 2 +- charts/prometheus-blackbox-exporter/templates/deployment.yaml | 1 + charts/prometheus-blackbox-exporter/values.yaml | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/prometheus-blackbox-exporter/Chart.yaml b/charts/prometheus-blackbox-exporter/Chart.yaml index 7ef9588d6eeb..46e83a1ca12e 100644 --- a/charts/prometheus-blackbox-exporter/Chart.yaml +++ b/charts/prometheus-blackbox-exporter/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 description: Prometheus Blackbox Exporter name: prometheus-blackbox-exporter -version: 9.1.0 +version: 9.2.0 appVersion: v0.25.0 kubeVersion: ">=1.21.0-0" home: https://github.com/prometheus/blackbox_exporter diff --git a/charts/prometheus-blackbox-exporter/templates/deployment.yaml b/charts/prometheus-blackbox-exporter/templates/deployment.yaml index beee01e6b6a3..41d40528f9ef 100644 --- a/charts/prometheus-blackbox-exporter/templates/deployment.yaml +++ b/charts/prometheus-blackbox-exporter/templates/deployment.yaml @@ -12,6 +12,7 @@ metadata: {{- end }} spec: replicas: {{ .Values.replicas }} + revisionHistoryLimit: {{ .Values.revisionHistoryLimit }} selector: matchLabels: {{- include "prometheus-blackbox-exporter.selectorLabels" . | nindent 6 }} diff --git a/charts/prometheus-blackbox-exporter/values.yaml b/charts/prometheus-blackbox-exporter/values.yaml index 564d90f1e1f7..6b068d32ea97 100644 --- a/charts/prometheus-blackbox-exporter/values.yaml +++ b/charts/prometheus-blackbox-exporter/values.yaml @@ -79,6 +79,10 @@ extraContainers: [] # - mountPath: /etc/prometheus/secrets/blackbox-tls # name: secret-blackbox-tls +## Number of replicasets to retain ## +## default value is 10, 0 will not retain any replicasets and make rollbacks impossible ## +revisionHistoryLimit: 10 + # String mode # extraContainers: |- # - name: oAuth2-proxy