From 2fa4062e9aed20832e298faee89b017b23e03568 Mon Sep 17 00:00:00 2001 From: WarpRat <23439640+WarpRat@users.noreply.github.com> Date: Tue, 10 Sep 2019 14:38:58 -0700 Subject: [PATCH] Adding support for custom annotations on pods This is necessary to allow datadog to autodiscover prometheus metrics based on pod annotations. --- charts/kafka-lag-exporter/templates/040-Deployment.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/charts/kafka-lag-exporter/templates/040-Deployment.yaml b/charts/kafka-lag-exporter/templates/040-Deployment.yaml index 203a9c8f..35a2e979 100644 --- a/charts/kafka-lag-exporter/templates/040-Deployment.yaml +++ b/charts/kafka-lag-exporter/templates/040-Deployment.yaml @@ -13,6 +13,10 @@ spec: matchLabels: app.kubernetes.io/name: {{ include "kafka-lag-exporter.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} + {{- if .Values.podAnnotations }} + annotations: +{{ toYaml .Value.podAnnotations | indent 8 }} + {{- end }} template: metadata: labels: