Skip to content

Commit

Permalink
[kube-state-metrics] fix serviceMonitor override indentation (prometh…
Browse files Browse the repository at this point in the history
…eus-community#1763)

* fix serviceMonitor override indentation

Signed-off-by: Jürgen Weber <[email protected]>
  • Loading branch information
jurgen-weber-deltatre authored Feb 2, 2022
1 parent f21389b commit 0f09f3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/kube-state-metrics/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ keywords:
- prometheus
- kubernetes
type: application
version: 4.4.2
version: 4.4.3
appVersion: 2.3.0
home: https://github.com/kubernetes/kube-state-metrics/
sources:
Expand Down
4 changes: 2 additions & 2 deletions charts/kube-state-metrics/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ spec:
jobLabel: {{ default "app.kubernetes.io/name" .Values.prometheus.monitor.jobLabel }}
selector:
matchLabels:
{{- if .Values.prometheus.monitor.selectorOverride }}
{{ toYaml .Values.prometheus.monitor.selectorOverride | indent 6 }}
{{- if .Values.prometheus.monitor.selectorOverride -}}
{{ toYaml .Values.prometheus.monitor.selectorOverride | nindent 6 }}
{{ else }}
{{- include "kube-state-metrics.selectorLabels" . | indent 6 }}
{{- end }}
Expand Down

0 comments on commit 0f09f3d

Please sign in to comment.