[stable/prometheus-postgres-exporter] Add .Values.service.annotations (#10038)

Signed-off-by: Manuel Thomassen <thom@ssen.codes>
This commit is contained in:
ssendev
2018-12-16 14:15:36 -08:00
committed by Kubernetes Prow Robot
parent b6e7b24796
commit 00dbcf3469
4 changed files with 7 additions and 1 deletions
@@ -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
@@ -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` |
@@ -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" . }}
@@ -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