We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae50196 commit 9e7c38bCopy full SHA for 9e7c38b
charts/k8s-service/templates/servicemonitor.yaml
@@ -1,5 +1,4 @@
1
{{- if .Values.serviceMonitor.enabled }}
2
----
3
apiVersion: monitoring.coreos.com/v1
4
kind: ServiceMonitor
5
metadata:
@@ -16,9 +15,7 @@ metadata:
16
15
{{- end }}
17
spec:
18
endpoints:
19
- {{- if .Values.serviceMonitor.endpoints }}
20
- {{- toYaml .Values.serviceMonitor.endpoints | nindent 6 }}
21
- {{- end }}
+ {{- values .Values.serviceMonitor.endpoints | toYaml | nindent 6 }}
22
selector:
23
matchLabels:
24
app.kubernetes.io/name: {{ template "k8s-service.name" . }}
0 commit comments