diff --git a/charts/prometheus-redis-exporter/Chart.yaml b/charts/prometheus-redis-exporter/Chart.yaml index b918515c3676..e359e6912265 100644 --- a/charts/prometheus-redis-exporter/Chart.yaml +++ b/charts/prometheus-redis-exporter/Chart.yaml @@ -3,7 +3,7 @@ apiVersion: v2 appVersion: v1.76.0 description: Prometheus exporter for Redis metrics name: prometheus-redis-exporter -version: 6.16.0 +version: 6.17.0 home: https://github.com/oliver006/redis_exporter sources: - https://github.com/oliver006/redis_exporter diff --git a/charts/prometheus-redis-exporter/templates/servicemonitor.yaml b/charts/prometheus-redis-exporter/templates/servicemonitor.yaml index 3983570b2c78..8400e4b5f089 100644 --- a/charts/prometheus-redis-exporter/templates/servicemonitor.yaml +++ b/charts/prometheus-redis-exporter/templates/servicemonitor.yaml @@ -1,4 +1,4 @@ -{{- if and ( .Capabilities.APIVersions.Has "monitoring.coreos.com/v1" ) ( .Values.serviceMonitor.enabled ) }} +{{- if .Values.serviceMonitor.enabled }} apiVersion: {{ .Values.serviceMonitor.apiVersion | default "monitoring.coreos.com/v1" }} kind: ServiceMonitor metadata: