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: {}