[stable/rabbitmq-ha] Move prometheus annotations to pods (#17247)

* [stable/rabbitmq-ha] prometheus annotations on pod

Signed-off-by: Paul Farver <paulfarver@gmail.com>

* [stable/rabbitmq-ha] Bump chart version

Signed-off-by: Paul Farver <paulfarver@gmail.com>

* [stable/rabbitmq-ha] Removed usesless "or"

Signed-off-by: Paul Farver <paulfarver@gmail.com>
This commit is contained in:
Paul Farver
2019-09-19 10:05:00 -07:00
committed by Kubernetes Prow Robot
parent 5def00f26e
commit e22547d91c
3 changed files with 6 additions and 8 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
name: rabbitmq-ha
apiVersion: v1
appVersion: 3.7.15
version: 1.32.2
version: 1.32.3
description: Highly available RabbitMQ cluster, the open source message broker
software that implements the Advanced Message Queuing Protocol (AMQP).
keywords:
+1 -7
View File
@@ -1,15 +1,9 @@
apiVersion: v1
kind: Service
metadata:
{{- if or .Values.service.annotations (and .Values.prometheus.exporter.enabled (not .Values.prometheus.operator.enabled)) }}
annotations:
{{- end }}
{{- if .Values.service.annotations }}
annotations:
{{ toYaml .Values.service.annotations | indent 4 }}
{{- end }}
{{- if and .Values.prometheus.exporter.enabled (not .Values.prometheus.operator.enabled) }}
prometheus.io/scrape: "true"
prometheus.io/port: {{ .Values.prometheus.exporter.port | quote }}
{{- end }}
name: {{ template "rabbitmq-ha.fullname" . }}
namespace: {{ .Release.Namespace }}
@@ -29,6 +29,10 @@ spec:
{{- if not .Values.existingConfigMap }}
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
{{- end }}
{{- if and .Values.prometheus.exporter.enabled (not .Values.prometheus.operator.enabled) }}
prometheus.io/scrape: "true"
prometheus.io/port: {{ .Values.prometheus.exporter.port | quote }}
{{- end }}
{{- if .Values.podAnnotations }}
{{ toYaml .Values.podAnnotations | indent 8 }}
{{- end }}