diff --git a/stable/postgresql/Chart.yaml b/stable/postgresql/Chart.yaml index fb5fb27b9d..0122e60354 100644 --- a/stable/postgresql/Chart.yaml +++ b/stable/postgresql/Chart.yaml @@ -1,5 +1,5 @@ name: postgresql -version: 0.12.0 +version: 0.13.0 appVersion: 9.6.2 description: Object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance. keywords: diff --git a/stable/postgresql/README.md b/stable/postgresql/README.md index c11919886d..04ea024433 100644 --- a/stable/postgresql/README.md +++ b/stable/postgresql/README.md @@ -81,6 +81,8 @@ The following table lists the configurable parameters of the PostgreSQL chart an | `nodeSelector` | Node labels for pod assignment | {} | | `affinity` | Affinity settings for pod assignment | {} | | `tolerations` | Toleration labels for pod assignment | [] | +| `podAnnotations` | Annotations for the postgresql pod | {} | +| `deploymentAnnotations` | Annotations for the postgresql deployment | {} | The above parameters map to the env variables defined in [postgres](http://github.com/docker-library/postgres). For more information please refer to the [postgres](http://github.com/docker-library/postgres) image documentation. diff --git a/stable/postgresql/templates/deployment.yaml b/stable/postgresql/templates/deployment.yaml index 4118fd441b..f3335daac0 100644 --- a/stable/postgresql/templates/deployment.yaml +++ b/stable/postgresql/templates/deployment.yaml @@ -7,6 +7,10 @@ metadata: chart: {{ template "postgresql.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} +{{- with .Values.deploymentAnnotations }} + annotations: +{{ toYaml . | indent 4 }} +{{- end }} spec: template: selector: @@ -18,6 +22,10 @@ spec: labels: app: {{ template "postgresql.name" . }} release: {{ .Release.Name }} +{{- with .Values.podAnnotations }} + annotations: +{{ toYaml . | indent 8 }} +{{- end }} spec: {{- if .Values.affinity }} affinity: diff --git a/stable/postgresql/values.yaml b/stable/postgresql/values.yaml index ee8fbe4917..7830fec46b 100644 --- a/stable/postgresql/values.yaml +++ b/stable/postgresql/values.yaml @@ -128,3 +128,7 @@ networkPolicy: nodeSelector: {} tolerations: [] affinity: {} + +## Annotations for the deployment and nodes. +deploymentAnnotations: {} +podAnnotations: {}