You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ko...@apache.org on 2022/01/07 15:49:17 UTC

[couchdb-helm] 01/03: Roll deployment if auth secrets change

This is an automated email from the ASF dual-hosted git repository.

kocolosk pushed a commit to branch roll-deployment-on-secret-change
in repository https://gitbox.apache.org/repos/asf/couchdb-helm.git

commit fe57a73677af7515fd815641806befd1a51ea476
Author: Adam Kocoloski <ko...@apache.org>
AuthorDate: Fri Jan 7 10:17:14 2022 -0500

    Roll deployment if auth secrets change
    
    Previously we introduced the feature to roll the pods of the CouchDB
    deployment if general config settings changed. This patch extends that
    behavior to changes in authentication secrets; i.e., server admin
    credentials and the cookie auth secret.
---
 couchdb/templates/statefulset.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/couchdb/templates/statefulset.yaml b/couchdb/templates/statefulset.yaml
index 3506f89..7df607c 100644
--- a/couchdb/templates/statefulset.yaml
+++ b/couchdb/templates/statefulset.yaml
@@ -20,6 +20,7 @@ spec:
 {{ include "couchdb.ss.selector" . | indent 8 }}
       annotations:
         checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
+        checksum/secret: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
 {{- if .Values.annotations }}
 {{ toYaml .Values.annotations | indent 8 }}
 {{- end }}