From 8a9dcc378df1ed40a5fd3df7be004b41e3ac4b89 Mon Sep 17 00:00:00 2001 From: Tung Nguyen <31010502+tnguyencota@users.noreply.github.com> Date: Mon, 11 Jun 2018 15:14:26 -0400 Subject: [PATCH] adding annotations (#5607) * adding annotations * fix typo in readme * fix test failure * remove extra line in vaules.yaml * Bump minor version for new feature --- stable/prometheus-postgres-exporter/Chart.yaml | 2 +- stable/prometheus-postgres-exporter/README.md | 1 + stable/prometheus-postgres-exporter/templates/deployment.yaml | 3 +++ stable/prometheus-postgres-exporter/values.yaml | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/stable/prometheus-postgres-exporter/Chart.yaml b/stable/prometheus-postgres-exporter/Chart.yaml index 3a981b40cf..de696618c2 100644 --- a/stable/prometheus-postgres-exporter/Chart.yaml +++ b/stable/prometheus-postgres-exporter/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: "0.4.6" description: A Helm chart for prometheus postgres-exporter name: prometheus-postgres-exporter -version: 0.1.3 +version: 0.2.0 home: https://github.com/wrouesnel/postgres_exporter sources: - https://github.com/wrouesnel/postgres_exporter diff --git a/stable/prometheus-postgres-exporter/README.md b/stable/prometheus-postgres-exporter/README.md index a3ab53e405..5a69f3859b 100644 --- a/stable/prometheus-postgres-exporter/README.md +++ b/stable/prometheus-postgres-exporter/README.md @@ -52,6 +52,7 @@ The following table lists the configurable parameters of the postgres Exporter c | `tolerations` | Add tolerations | `[]` | | `nodeSelector` | node labels for pod assignment | `{}` | | `affinity` | node/pod affinities | `{}` | +| `annotations` | Deployment annotations | `{}` | Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, diff --git a/stable/prometheus-postgres-exporter/templates/deployment.yaml b/stable/prometheus-postgres-exporter/templates/deployment.yaml index 1658f36761..63a16c33d9 100644 --- a/stable/prometheus-postgres-exporter/templates/deployment.yaml +++ b/stable/prometheus-postgres-exporter/templates/deployment.yaml @@ -20,6 +20,9 @@ spec: release: {{ .Release.Name }} annotations: checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} +{{- if .Values.annotations }} +{{ toYaml .Values.annotations | indent 8 }} +{{- end}} spec: serviceAccountName: {{ template "prometheus-postgres-exporter.serviceAccountName" . }} containers: diff --git a/stable/prometheus-postgres-exporter/values.yaml b/stable/prometheus-postgres-exporter/values.yaml index 912726718c..c84faa4b0b 100644 --- a/stable/prometheus-postgres-exporter/values.yaml +++ b/stable/prometheus-postgres-exporter/values.yaml @@ -138,3 +138,5 @@ nodeSelector: {} tolerations: [] affinity: {} + +annotations: {}