You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by wi...@apache.org on 2020/02/24 14:55:22 UTC
[couchdb-helm] 12/33: Add support for pod annotations
This is an automated email from the ASF dual-hosted git repository.
willholley pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb-helm.git
commit e98bd87e8312a1b94a1b779bccb9f165ddb7e576
Author: Will Holley <wi...@gmail.com>
AuthorDate: Tue Oct 22 13:51:50 2019 +0100
Add support for pod annotations
Ported from https://github.com/helm/charts/pull/16794.
Co-authored-by: Sylvain Perrinel <sy...@gmail.com>
---
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