Skip to content

Commit

Permalink
fix: invalid syntax in ServiceMonitor helm template
Browse files Browse the repository at this point in the history
  • Loading branch information
networkhermit authored and clementnuss committed Jul 22, 2023
1 parent fa99d97 commit f9a74f5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions charts/kubelet-csr-approver/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ metadata:
{{- with .Values.metrics.serviceMonitor.additionalLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
annotations:
{{- with .Values.metrics.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
Expand All @@ -19,9 +19,10 @@ spec:
matchNames:
- {{ .Release.Namespace }}
selector:
{{- include "kubelet-csr-approver.selectorLabels" . | nindent 4 }}
matchLabels:
{{- include "kubelet-csr-approver.selectorLabels" . | nindent 6 }}
endpoints:
- port: {{ .Values.metrics.port }}
- port: metrics
path: /metrics
scheme: http
{{- with .Values.metrics.serviceMonitor.interval }}
Expand Down

0 comments on commit f9a74f5

Please sign in to comment.