Skip to content

Commit 00e3329

Browse files
authored
Make erlangCookie and cookieAuthSecret specifiable in extraSecret (#195)
Make erlangCookie and cookieAuthSecret specifyable in extraSecret
1 parent 202c4e3 commit 00e3329

File tree

5 files changed

+17
-10
lines changed

5 files changed

+17
-10
lines changed

couchdb/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v1
22
name: couchdb
3-
version: 4.6.1
3+
version: 4.6.2
44
appVersion: 3.5.0
55
description: A database featuring seamless multi-master sync, that scales from
66
big data to mobile, with an intuitive HTTP/JSON API and designed for

couchdb/NEWS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# NEWS
22

3+
## 4.6.2
4+
- Added options to specify `erlangCookie` and `cookieAuthSecret` within the extra secret
5+
36
## 4.6.1
47
- Update default CouchDB version to 3.5.0
58

couchdb/README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CouchDB
22

3-
![Version: 4.6.1](https://img.shields.io/badge/Version-4.6.1-informational?style=flat-square) ![AppVersion: 3.5.0](https://img.shields.io/badge/AppVersion-3.5.0-informational?style=flat-square)
3+
![Version: 4.6.2](https://img.shields.io/badge/Version-4.6.2-informational?style=flat-square) ![AppVersion: 3.5.0](https://img.shields.io/badge/AppVersion-3.5.0-informational?style=flat-square)
44

55
Apache CouchDB is a database featuring seamless multi-master sync, that scales
66
from big data to mobile, with an intuitive HTTP/JSON API and designed for
@@ -18,7 +18,7 @@ storage volumes to each Pod in the Deployment.
1818
```bash
1919
$ helm repo add couchdb https://apache.github.io/couchdb-helm
2020
$ helm install couchdb/couchdb \
21-
--version=4.6.1 \
21+
--version=4.6.2 \
2222
--set allowAdminParty=true \
2323
--set couchdbConfig.couchdb.uuid=$(curl https://www.uuidgenerator.net/api/version4 2>/dev/null | tr -d -)
2424
```
@@ -44,7 +44,7 @@ Afterwards install the chart replacing the UUID
4444
```bash
4545
$ helm install \
4646
--name my-release \
47-
--version=4.6.1 \
47+
--version=4.6.2 \
4848
--set couchdbConfig.couchdb.uuid=decafbaddecafbaddecafbaddecafbad \
4949
couchdb/couchdb
5050
```
@@ -78,7 +78,7 @@ and then install the chart while overriding the `createAdminSecret` setting:
7878
```bash
7979
$ helm install \
8080
--name my-release \
81-
--version=4.6.1 \
81+
--version=4.6.2 \
8282
--set createAdminSecret=false \
8383
--set couchdbConfig.couchdb.uuid=decafbaddecafbaddecafbaddecafbad \
8484
couchdb/couchdb
@@ -133,7 +133,7 @@ version semantics. You can upgrade directly from `stable/couchdb` to this chart
133133

134134
```bash
135135
$ helm repo add couchdb https://apache.github.io/couchdb-helm
136-
$ helm upgrade my-release --version=4.6.1 couchdb/couchdb
136+
$ helm upgrade my-release --version=4.6.2 couchdb/couchdb
137137
```
138138

139139
## Configuration
@@ -173,6 +173,8 @@ A variety of other parameters are also configurable. See the comments in the
173173
| `extraSecretName` | "" (the name of a secret resource to provide e.g. admin credentials from an ExternalSecret/vault/etc.) |
174174
| `adminUsernameKey` | "" (the string/key to access the admin username secret from an extra secret if different from "adminUsername" |
175175
| `adminPasswordKey` | "" (the string/key to access the admin password secret from an extra secret if different from "adminPassword" |
176+
| `cookieAuthSecretKey` | "" (the string/key to access the cookie auth secret from an extra secret if different from "cookieAuthSecret" |
177+
| `erlangCookieKey` | "" (the string/key to access the erlang cookie secret from an extra secret if different from "erlangCookie" |
176178
| `cookieAuthSecret` | auto-generated |
177179
| `extraPorts` | [] (a list of ContainerPort objects) |
178180
| `image.repository` | couchdb |

couchdb/templates/statefulset.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,14 @@ spec:
125125
- name: COUCHDB_SECRET
126126
valueFrom:
127127
secretKeyRef:
128-
name: {{ template "couchdb.fullname" . }}
129-
key: cookieAuthSecret
128+
name: {{ .Values.extraSecretName | default (include "couchdb.fullname" .) }}
129+
key: {{ .Values.cookieAuthSecretKey | default "cookieAuthSecret" }}
130130
{{- end }}
131131
- name: COUCHDB_ERLANG_COOKIE
132132
valueFrom:
133133
secretKeyRef:
134-
name: {{ template "couchdb.fullname" . }}
135-
key: erlangCookie
134+
name: {{ .Values.extraSecretName | default (include "couchdb.fullname" .) }}
135+
key: {{ .Values.erlangCookieKey | default "erlangCookie" }}
136136
- name: ERL_FLAGS
137137
value: "{{ range $k, $v := .Values.erlangFlags }} -{{ $k }} {{ $v }} {{ end }}"
138138
{{- if .Values.extraEnv }}

couchdb/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ createAdminSecret: true
4040
extraSecretName: ""
4141
adminUsernameKey: ""
4242
adminPasswordKey: ""
43+
cookieAuthSecretKey: ""
44+
erlangCookieKey: ""
4345

4446
adminUsername: admin
4547
# adminPassword: this_is_not_secure

0 commit comments

Comments
 (0)