Skip to content

Commit

Permalink
Remove duplicate label configurations on service monitor (kubecost#1457)
Browse files Browse the repository at this point in the history
The yaml produced by helm when rendering the service monitor
wasn't validating as fully compliant YAML because of duplicate keys
so some popular tools wouldn't apply it after rendering.
  • Loading branch information
pcfens authored Jun 15, 2022
1 parent 141ef67 commit 1b58c1d
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ metadata:
name: {{ include "kubecost.kubeMetricsName" . }}
labels:
{{ include "cost-analyzer.commonLabels" . | nindent 4 }}
{{ include "kubecost.chartLabels" . | nindent 4 }}
{{- if .Values.kubecostMetrics.exporter.serviceMonitor.additionalLabels }}
{{ toYaml .Values.kubecostMetrics.exporter.serviceMonitor.additionalLabels | nindent 4 }}
{{- end }}
Expand Down

0 comments on commit 1b58c1d

Please sign in to comment.