Skip to content

Commit 90b290b

Browse files
authored
[bitnami/thanos]: conditionals for compactor cronjob (bitnami#16898)
* fix(bitnami/thanos): conditionals for compactor cronjob Don't create a `Service` or `ServiceMonitor` for the compactor when the compactor is configured to run as a cronjob Fixes bitnami#16742 Signed-off-by: Vincent Rivellino <github@vince-riv.io> * [bitnami/thanos] Release 12.6.3 Signed-off-by: Vincent Rivellino <github@vince-riv.io> --------- Signed-off-by: Vincent Rivellino <github@vince-riv.io>
1 parent 8dfaf4d commit 90b290b

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

bitnami/thanos/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ maintainers:
2727
name: thanos
2828
sources:
2929
- https://github.com/bitnami/charts/tree/main/bitnami/thanos
30-
version: 12.6.2
30+
version: 12.6.3

bitnami/thanos/templates/compactor/service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if .Values.compactor.enabled -}}
1+
{{- if and .Values.compactor.enabled (not .Values.compactor.cronJob.enabled) }}
22
apiVersion: v1
33
kind: Service
44
metadata:

bitnami/thanos/templates/compactor/servicemonitor.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if and .Values.compactor.enabled .Values.metrics.enabled .Values.metrics.serviceMonitor.enabled }}
1+
{{- if and .Values.compactor.enabled .Values.metrics.enabled .Values.metrics.serviceMonitor.enabled (not .Values.compactor.cronJob.enabled) }}
22
apiVersion: monitoring.coreos.com/v1
33
kind: ServiceMonitor
44
metadata:

0 commit comments

Comments
 (0)