From e98bd87e8312a1b94a1b779bccb9f165ddb7e576 Mon Sep 17 00:00:00 2001 From: Will Holley Date: Tue, 22 Oct 2019 13:51:50 +0100 Subject: [PATCH] Add support for pod annotations Ported from https://github.com/helm/charts/pull/16794. Co-authored-by: Sylvain Perrinel --- couchdb/README.md | 1 + couchdb/templates/statefulset.yaml | 4 ++++ couchdb/values.yaml | 3 +++ 3 files changed, 8 insertions(+) diff --git a/couchdb/README.md b/couchdb/README.md index 1f4bc60..0f3c90d 100644 --- a/couchdb/README.md +++ b/couchdb/README.md @@ -132,6 +132,7 @@ A variety of other parameters are also configurable. See the comments in the | `persistentVolume.storageClass` | Default for the Kube cluster | | `podManagementPolicy` | Parallel | | `affinity` | | +| `annotations` | | | `resources` | | | `service.annotations` | | | `service.enabled` | true | diff --git a/couchdb/templates/statefulset.yaml b/couchdb/templates/statefulset.yaml index fab2c36..416b594 100644 --- a/couchdb/templates/statefulset.yaml +++ b/couchdb/templates/statefulset.yaml @@ -18,6 +18,10 @@ spec: metadata: labels: {{ include "couchdb.ss.selector" . | indent 8 }} +{{- with .Values.annotations }} + annotations: +{{ toYaml . | indent 8 }} +{{- end }} spec: {{- if .Values.schedulerName }} schedulerName: "{{ .Values.schedulerName }}" diff --git a/couchdb/values.yaml b/couchdb/values.yaml index 8cc24f8..cbff0f9 100644 --- a/couchdb/values.yaml +++ b/couchdb/values.yaml @@ -80,6 +80,9 @@ affinity: # - couchdb # topologyKey: "kubernetes.io/hostname" +## Optional pod annotations +annotations: + ## A StatefulSet requires a headless Service to establish the stable network ## identities of the Pods, and that Service is created automatically by this ## chart without any additional configuration. The Service block below refers