Skip to content

Commit c5f625f

Browse files
arthlrmonotek
andauthored
[prometheus-rabbitmq-exporter] support deployment annotations (#5331)
* feat(prometheus-rabbitmq-exporter): support deployment annotations Signed-off-by: Arthur Le Roux <aleroux@wiremind.io> * Update README.md Signed-off-by: André Bauer <monotek@users.noreply.github.com> * chore: add annotations on secret Also lint secret labels Signed-off-by: Arthur Le Roux <aleroux@wiremind.io> * Update charts/prometheus-rabbitmq-exporter/values.yaml Signed-off-by: André Bauer <monotek@users.noreply.github.com> --------- Signed-off-by: Arthur Le Roux <aleroux@wiremind.io> Signed-off-by: André Bauer <monotek@users.noreply.github.com> Co-authored-by: André Bauer <monotek@users.noreply.github.com>
1 parent c10cf15 commit c5f625f

File tree

5 files changed

+16
-2
lines changed

5 files changed

+16
-2
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.0.0
4+
version: 2.1.0
55
appVersion: 1.0.0
66
home: https://github.com/kbudde/rabbitmq_exporter
77
sources:

charts/prometheus-rabbitmq-exporter/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ Prometheus Exporter for [RabbitMQ](https://www.rabbitmq.com/) metrics.
44

55
This chart bootstraps a [RabbitMQ Exporter](https://github.com/kbudde/rabbitmq_exporter) deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager.
66

7+
## DEPRECATION WARNING
8+
9+
The exporter used in this chart is deprecated and will not receive further updates!
10+
See: <https://github.com/kbudde/rabbitmq_exporter/issues/383>
11+
712
## Prerequisites
813

914
- Kubernetes 1.8+ with Beta APIs enabled

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ apiVersion: apps/v1
22
kind: Deployment
33
metadata:
44
name: {{ template "prometheus-rabbitmq-exporter.fullname" . }}
5+
annotations:
6+
{{- with .Values.additionalAnnotations }}
7+
{{- toYaml .| nindent 4 }}
8+
{{- end }}
59
labels:
610
app: {{ template "prometheus-rabbitmq-exporter.name" . }}
711
chart: {{ template "prometheus-rabbitmq-exporter.chart" . }}

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,17 @@ apiVersion: v1
33
kind: Secret
44
metadata:
55
name: {{ template "prometheus-rabbitmq-exporter.fullname" . }}
6+
annotations:
7+
{{- with .Values.additionalAnnotations }}
8+
{{- toYaml .| nindent 4 }}
9+
{{- end }}
610
labels:
711
app: {{ template "prometheus-rabbitmq-exporter.name" . }}
812
chart: {{ template "prometheus-rabbitmq-exporter.chart" . }}
913
release: {{ .Release.Name }}
1014
heritage: {{ .Release.Service }}
1115
{{- if .Values.additionalLabels }}
12-
{{ toYaml .Values.additionalLabels | indent 4 }}
16+
{{- toYaml .Values.additionalLabels | nindent 4 }}
1317
{{- end }}
1418
type: Opaque
1519
data:

charts/prometheus-rabbitmq-exporter/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ rabbitmq:
6262

6363
## Additional labels to set in the Deployment object. Together with standard labels from
6464
## the chart
65+
additionalAnnotations: {}
6566
additionalLabels: {}
6667

6768
podLabels: {}

0 commit comments

Comments
 (0)