feat(thanos_sidecar): if enabled must also be configured for deploy to occur

!8
This commit is contained in:
2024-02-04 15:04:24 +09:30
parent 18649086b5
commit cd2bceec3a
5 changed files with 21 additions and 11 deletions

View File

@ -28,6 +28,8 @@ spec:
app.kubernetes.io/part-of: {{ $.Chart.Name }}
{{ if .Values.nfc_monitoring.thanos.sidecar.enabled }}
{{ if .Values.nfc_monitoring.thanos.sidecar.config }}
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
@ -56,4 +58,5 @@ spec:
app.kubernetes.io/name: thanos-sidecar
app.kubernetes.io/part-of: {{ $.Chart.Name }}
{{ end }}
{{ end }}
{{ end }}