From 00dbcf3469f21cbfa5685a5585db7215813b90c9 Mon Sep 17 00:00:00 2001 From: ssendev Date: Sun, 16 Dec 2018 23:15:36 +0100 Subject: [PATCH] [stable/prometheus-postgres-exporter] Add .Values.service.annotations (#10038) Signed-off-by: Manuel Thomassen --- stable/prometheus-postgres-exporter/Chart.yaml | 2 +- stable/prometheus-postgres-exporter/README.md | 1 + stable/prometheus-postgres-exporter/templates/service.yaml | 4 ++++ stable/prometheus-postgres-exporter/values.yaml | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/stable/prometheus-postgres-exporter/Chart.yaml b/stable/prometheus-postgres-exporter/Chart.yaml index 635d805c83..e19f1acad1 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.5.0 +version: 0.5.1 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 5b3bf57cab..c4dafe2b0f 100644 --- a/stable/prometheus-postgres-exporter/README.md +++ b/stable/prometheus-postgres-exporter/README.md @@ -41,6 +41,7 @@ The following table lists the configurable parameters of the postgres Exporter c | `image` | Image | `wrouesnel/postgres_exporter` | | `imageTag` | Image tag | `v0.4.6` | | `imagePullPolicy` | Image pull policy | `IfNotPresent` | +| `service.annotations` | annotations for the service | `{}` | | `service.type` | Service type | `ClusterIP` | | `service.port` | The service port | `80` | | `service.targetPort` | The target port of the container | `9187` | diff --git a/stable/prometheus-postgres-exporter/templates/service.yaml b/stable/prometheus-postgres-exporter/templates/service.yaml index 309227a343..3d403f275b 100644 --- a/stable/prometheus-postgres-exporter/templates/service.yaml +++ b/stable/prometheus-postgres-exporter/templates/service.yaml @@ -2,6 +2,10 @@ apiVersion: v1 kind: Service metadata: name: {{ template "prometheus-postgres-exporter.fullname" . }} + {{- if .Values.service.annotations }} + annotations: +{{ toYaml .Values.service.annotations | indent 4 }} +{{- end }} labels: app: {{ template "prometheus-postgres-exporter.name" . }} chart: {{ template "prometheus-postgres-exporter.chart" . }} diff --git a/stable/prometheus-postgres-exporter/values.yaml b/stable/prometheus-postgres-exporter/values.yaml index b54dd0677b..c3de2355bb 100644 --- a/stable/prometheus-postgres-exporter/values.yaml +++ b/stable/prometheus-postgres-exporter/values.yaml @@ -13,6 +13,7 @@ service: type: ClusterIP port: 80 targetPort: 9187 + annotations: {} resources: {} # We usually recommend not to specify default resources and to leave this as a conscious