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/01/06 10:34:18 UTC

[couchdb-helm] 13/26: Include pod tolerations in statefulset

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 a3f8c1cbb4bd5fd4ad2a7b61c52f6b3d1b5e68d4
Author: Will Holley <wi...@gmail.com>
AuthorDate: Tue Oct 22 14:24:25 2019 +0100

    Include pod tolerations in statefulset
    
    Ported from https://github.com/helm/charts/pull/17079/.
    
    Co-authored-by: jayenzo <jw...@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 0f3c90d..ccd3596 100644
--- a/couchdb/README.md
+++ b/couchdb/README.md
@@ -133,6 +133,7 @@ A variety of other parameters are also configurable. See the comments in the
 | `podManagementPolicy`           | Parallel                               |
 | `affinity`                      |                                        |
 | `annotations`                   |                                        |
+| `tolerations`                   |                                        |
 | `resources`                     |                                        |
 | `service.annotations`           |                                        |
 | `service.enabled`               | true                                   |
diff --git a/couchdb/templates/statefulset.yaml b/couchdb/templates/statefulset.yaml
index 416b594..3e70bdc 100644
--- a/couchdb/templates/statefulset.yaml
+++ b/couchdb/templates/statefulset.yaml
@@ -109,6 +109,10 @@ spec:
       nodeSelector:
 {{ toYaml .Values.nodeSelector | indent 8 }}
 {{- end }}
+{{- with .Values.tolerations }}
+      tolerations:
+{{ toYaml . | indent 8 }}
+{{- end }}
 {{- with .Values.affinity }}
       affinity:
 {{ toYaml . | indent 8 }}
diff --git a/couchdb/values.yaml b/couchdb/values.yaml
index cbff0f9..ecdd0d1 100644
--- a/couchdb/values.yaml
+++ b/couchdb/values.yaml
@@ -83,6 +83,9 @@ affinity:
 ## Optional pod annotations
 annotations:
 
+## Optional tolerations
+tolerations:
+
 ## 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