From 92121ecebe04bc8874197cc704836f4e3284e7c4 Mon Sep 17 00:00:00 2001 From: Ilia Lazebnik Date: Sat, 29 Jun 2024 07:55:25 -0400 Subject: [PATCH] [prometheus-elasticsearch-exporter] add support for revisionhistorylimit (#4644) Signed-off-by: drfaust92 --- charts/prometheus-elasticsearch-exporter/Chart.yaml | 2 +- .../templates/deployment.yaml | 1 + charts/prometheus-elasticsearch-exporter/values.yaml | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/prometheus-elasticsearch-exporter/Chart.yaml b/charts/prometheus-elasticsearch-exporter/Chart.yaml index 29bd21602e41..ae283733e755 100644 --- a/charts/prometheus-elasticsearch-exporter/Chart.yaml +++ b/charts/prometheus-elasticsearch-exporter/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 description: Elasticsearch stats exporter for Prometheus name: prometheus-elasticsearch-exporter -version: 5.8.1 +version: 5.9.0 kubeVersion: ">=1.10.0-0" appVersion: "v1.7.0" home: https://github.com/prometheus-community/elasticsearch_exporter diff --git a/charts/prometheus-elasticsearch-exporter/templates/deployment.yaml b/charts/prometheus-elasticsearch-exporter/templates/deployment.yaml index b54288ebcbb9..ba13fdbc04d9 100644 --- a/charts/prometheus-elasticsearch-exporter/templates/deployment.yaml +++ b/charts/prometheus-elasticsearch-exporter/templates/deployment.yaml @@ -16,6 +16,7 @@ metadata: {{- end }} spec: replicas: {{ .Values.replicaCount }} + revisionHistoryLimit: {{ .Values.revisionHistoryLimit }} selector: matchLabels: app: {{ template "elasticsearch-exporter.name" . }} diff --git a/charts/prometheus-elasticsearch-exporter/values.yaml b/charts/prometheus-elasticsearch-exporter/values.yaml index bb0b179fe612..b8d75cb40123 100644 --- a/charts/prometheus-elasticsearch-exporter/values.yaml +++ b/charts/prometheus-elasticsearch-exporter/values.yaml @@ -26,6 +26,10 @@ global: ## replicaCount: 1 +## Number of old replicasets to retain ## +## The default value is 10, 0 will garbage-collect old replicasets ## +revisionHistoryLimit: 10 + ## restart policy for all containers ## restartPolicy: Always