Compare commits

...

4 Commits

Author SHA1 Message Date
Stefan Prodan
d29c60d2e6 Merge pull request #1885 from renatovassaomb/rv/drop-policy-v1beta1
Removes deprecated `policy/v1beta1` API from PodDisruptionBudget templates
2026-03-11 15:30:08 +02:00
Sanskar Jaiswal
481d9c3d1f Merge pull request #1811 from cdoble84-uk/prometheus-chart-fix
fix(chart): fixes a compatibility issue with the Helm Chart and Prometheus v3.0+
2026-03-09 20:03:47 +05:30
Chris Doble
5bf3cc5c95 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 <chrisdoble84@gmail.com>
2026-03-09 18:06:00 +05:30
Renato Vassão
36a208835d Removes deprecated policy/v1beta1 api from PodDisruptionBudget templates
Signed-off-by: Renato Vassão <renato.vassao@mindbodyonline.com>
2026-03-06 10:21:45 -03:00
3 changed files with 1 additions and 9 deletions

View File

@@ -1,9 +1,5 @@
{{- if .Values.podDisruptionBudget.enabled }}
{{- if .Capabilities.APIVersions.Has "policy/v1/PodDisruptionBudget" -}}
apiVersion: policy/v1
{{- else }}
apiVersion: policy/v1beta1
{{- end }}
kind: PodDisruptionBudget
metadata:
name: {{ template "flagger.name" . }}

View File

@@ -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

View File

@@ -1,9 +1,5 @@
{{- if .Values.podDisruptionBudget.enabled }}
{{- if .Capabilities.APIVersions.Has "policy/v1/PodDisruptionBudget" -}}
apiVersion: policy/v1
{{- else }}
apiVersion: policy/v1beta1
{{- end }}
kind: PodDisruptionBudget
metadata:
name: {{ include "loadtester.fullname" . }}