diff --git a/stable/elasticsearch-exporter/Chart.yaml b/stable/elasticsearch-exporter/Chart.yaml index 1ab855075e..1230c33282 100644 --- a/stable/elasticsearch-exporter/Chart.yaml +++ b/stable/elasticsearch-exporter/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 description: Elasticsearch stats exporter for Prometheus name: elasticsearch-exporter -version: 1.3.0 +version: 1.3.1 appVersion: 1.0.2 home: https://github.com/justwatchcom/elasticsearch_exporter sources: diff --git a/stable/elasticsearch-exporter/templates/service.yaml b/stable/elasticsearch-exporter/templates/service.yaml index 167f5509d5..d268ca5748 100644 --- a/stable/elasticsearch-exporter/templates/service.yaml +++ b/stable/elasticsearch-exporter/templates/service.yaml @@ -7,11 +7,9 @@ metadata: app: {{ template "elasticsearch-exporter.name" . }} release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" - {{- if .Values.service.labels }} - {{- range $key, $value := .Values.service.labels }} - {{ $key }}: {{ $value | quote }} - {{- end }} - {{- end }} +{{- if .Values.service.labels }} +{{ toYaml .Values.service.labels | indent 4 }} +{{- end }} {{- if .Values.service.annotations }} annotations: {{ toYaml .Values.service.annotations | indent 4 }}