adding annotations (#5607)

* adding annotations

* fix typo in readme

* fix test failure

* remove extra line in vaules.yaml

* Bump minor version for new feature
This commit is contained in:
Tung Nguyen
2018-06-11 12:14:26 -07:00
committed by k8s-ci-robot
parent eb570642ec
commit 8a9dcc378d
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.1.3
version: 0.2.0
home: https://github.com/wrouesnel/postgres_exporter
sources:
- https://github.com/wrouesnel/postgres_exporter
@@ -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,
@@ -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:
@@ -138,3 +138,5 @@ nodeSelector: {}
tolerations: []
affinity: {}
annotations: {}