Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

Commit

Permalink
Refactor existingSecretPasswordKey feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Antiarchitect committed Jan 22, 2022
1 parent 548fff2 commit 83ef8f1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion keydb/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: keydb
description: A Helm chart for KeyDB multimaster setup
type: application
version: 0.31.0
version: 0.32.0
keywords:
- keydb
- redis
Expand Down
4 changes: 2 additions & 2 deletions keydb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ The following table lists the configurable parameters of the KeyDB chart and the
| `nodes` | Number of KeyDB master pods | `3` |
| `password` | If enabled KeyDB servers are password-protected | `""` |
| `existingSecret` | If enabled password is taken from secret | `""` |
| `existingSecretPasswordKey` | Secret key name. Default value password | `""`
| `existingSecretPasswordKey` | Secret key name. | `"password"` |
| `port` | KeyDB service port clients connect to | `6379` |
| `threads` | KeyDB server-threads per node | `2` |
| `multiMaster` | KeyDB multi-master setup | `yes` |
Expand Down Expand Up @@ -127,7 +127,7 @@ The following table lists the configurable parameters of the KeyDB chart and the
## Using existingSecret

When definining existingSecret (by default is "") password value is ignored. Password is taken from that secret, instead of being provided as plain text under values.yaml file. \
Secret key must be *password*. \
Secret key must be `existingSecretPasswordKey` (*password* by default). \
Example of of such secret:
```bash
kubectl create secret generic keydb-password --from-literal=password=KEYDB_PASSWORD
Expand Down
2 changes: 1 addition & 1 deletion keydb/templates/sts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ spec:
valueFrom:
secretKeyRef:
name: {{ .Values.existingSecret }}
key: {{ default "password" .Values.existingSecretPasswordKey }}
key: {{ .Values.existingSecretPasswordKey }}
{{- else if .Values.password }}
- name: REDIS_PASSWORD
value: "{{ .Values.password }}"
Expand Down
2 changes: 1 addition & 1 deletion keydb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ nodes: 3

password: ""
existingSecret: ""
existingSecretPasswordKey: ""
existingSecretPasswordKey: "password"
port: 6379

threads: 2
Expand Down

0 comments on commit 83ef8f1

Please sign in to comment.