Skip to content

Commit

Permalink
fix(base-cluster/kdave): deploy wrapped ServiceMonitor
Browse files Browse the repository at this point in the history
  • Loading branch information
cwrau committed Dec 18, 2024
1 parent 80c1033 commit ef07e21
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion charts/base-cluster/templates/monitoring/kdave/kdave.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,18 @@ spec:
apiVersionsInspector:
enabled: false
---
{{- include "base-cluster.helm.resourceWithDependencies" (dict "name" "kdave-servicemonitor" "resource" (include "base-cluster.kdave.serviceMonitor" (dict "context" .)) "dependencies" (dict "monitoring" "kube-prometheus-stack") "context" $ "additionalLabels" (dict "app.kubernetes.io/component" "kdave")) | nindent 0 }}
{{- end -}}


{{- define "base-cluster.kdave.serviceMonitor" -}}
{{- $_ := mustMerge . (pick .context "Values") -}}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: kdave
namespace: monitoring
labels: {{- include "common.labels.standard" $ | nindent 4 }}{{- toYaml .Values.monitoring.labels | nindent 4 }}
labels: {{- include "common.helm.labels" (dict) | nindent 4 }}{{- toYaml .Values.monitoring.labels | nindent 4 }}
app.kubernetes.io/component: kdave
app.kubernetes.io/part-of: monitoring
spec:
Expand Down

0 comments on commit ef07e21

Please sign in to comment.