feat(service_monitor): don't deploy if not enabled

!8
This commit is contained in:
2024-02-04 15:33:50 +09:30
parent e13d55e61e
commit bc4d72ff8e
14 changed files with 44 additions and 0 deletions

View File

@ -1,3 +1,4 @@
{{ if .Values.nfc_monitoring.grafana_agent.enabled }}
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
@ -75,3 +76,5 @@ spec:
matchLabels:
{{ toYaml $.Values.nfc_monitoring.grafana_agent.labels | nindent 6 }}
app.kubernetes.io/part-of: {{ $.Chart.Name }}
{{ end }}