From 5bf3cc5c954052e02294c134a8c354b8e70044bd Mon Sep 17 00:00:00 2001 From: Chris Doble Date: Fri, 27 Jun 2025 12:59:59 +0100 Subject: [PATCH] Fixes a compatibility issue with the Helm Chart and Prometheus v3.0+ In the Flagger Helm Chart Prometheus config the storage retention duration is set via this flag --storage.tsdb.retention. This Flag was deprecated in a previous version of Prometheus and removed from Prometheus v3.0+ which means the current Flagger Helm Chart is incompatible with the newer Prometheus versions. This flag has now been updated to --storage.tsdb.retention.time which is backwards compatible down to Prometheus v2.51 at least. Signed-off-by: Chris Doble --- charts/flagger/templates/prometheus.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/flagger/templates/prometheus.yaml b/charts/flagger/templates/prometheus.yaml index b15f50e1..24e0fc02 100644 --- a/charts/flagger/templates/prometheus.yaml +++ b/charts/flagger/templates/prometheus.yaml @@ -233,7 +233,7 @@ spec: image: {{ .Values.prometheus.image }} imagePullPolicy: IfNotPresent args: - - '--storage.tsdb.retention={{ .Values.prometheus.retention }}' + - '--storage.tsdb.retention.time={{ .Values.prometheus.retention }}' - '--config.file=/etc/prometheus/prometheus.yml' ports: - containerPort: 9090