Skip to content

Commit a7430c3

Browse files
Jonathan Huangshhgs
authored andcommitted
[prometheus-rabbitmq-exporter] Fix the issue to add labels to Service
Signed-off-by: Jonathan Huang <[email protected]>
1 parent 5c8e858 commit a7430c3

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

charts/prometheus-rabbitmq-exporter/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
description: Rabbitmq metrics exporter for prometheus
33
name: prometheus-rabbitmq-exporter
4-
version: 2.1.1
4+
version: 2.1.2
55
appVersion: 1.0.0
66
home: https://github.com/kbudde/rabbitmq_exporter
77
sources:

charts/prometheus-rabbitmq-exporter/templates/service.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ metadata:
77
chart: {{ template "prometheus-rabbitmq-exporter.chart" . }}
88
release: {{ .Release.Name }}
99
heritage: {{ .Release.Service }}
10-
{{- with .Values.service.labels }}
11-
{{ toYaml . | indent 4 }}
12-
{{- end }}
10+
{{- with .Values.service.labels -}}
11+
{{ toYaml . | nindent 4 }}
12+
{{- end }}
1313
spec:
1414
type: {{ .Values.service.type }}
1515
ports:

charts/prometheus-rabbitmq-exporter/values.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ service:
1212
type: ClusterIP
1313
externalPort: 9419
1414
internalPort: 9419
15-
labels: {}
15+
labels:
16+
foo: bar
17+
blah: darh
1618

1719
resources: {}
1820
# We usually recommend not to specify default resources and to leave this as a conscious

0 commit comments

Comments
 (0)