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

Commit

Permalink
keydb: 0.24.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Antiarchitect committed Aug 26, 2021
1 parent 2c0db1b commit 185f73b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions 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.23.0
version: 0.24.0
keywords:
- keydb
- redis
Expand All @@ -20,4 +20,4 @@ sources:
- https://github.com/Enapter/charts
- https://github.com/JohnSully/KeyDB
icon: https://keydb.dev/assets/ico/keydb_logo_bwtxtw.png
appVersion: 6.0.18
appVersion: 6.2.0
2 changes: 1 addition & 1 deletion keydb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ The following table lists the configurable parameters of the KeyDB chart and the

| Parameter | Description | Default |
|:--------------------------------|:---------------------------------------------------|:------------------------------------------|
| `image` | KeyDB docker image | `eqalpha/keydb:x86_64_v6.0.18` |
| `image` | KeyDB docker image | `eqalpha/keydb:x86_64_v6.2.0` |
| `imagePullPolicy` | K8s imagePullPolicy | `IfNotPresent` |
| `nodes` | Number of KeyDB master pods | `3` |
| `password` | If enabled KeyDB servers are password-protected | `""` |
Expand Down
26 changes: 13 additions & 13 deletions keydb/templates/secret-utils.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,28 @@ stringData:
port="6379"
replicas=()
for node in {0..{{ (sub (.Values.nodes | int) 1) }}}; do
if [ "$host" != "{{ include "keydb.fullname" . }}-${node}" ]; then
if [ "${host}" != "{{ include "keydb.fullname" . }}-${node}" ]; then
replicas+=("--replicaof {{ include "keydb.fullname" . }}-${node}.{{ include "keydb.fullname" . }}-headless ${port}")
fi
done
exec keydb-server /etc/keydb/redis.conf \
--active-replica {{ .Values.activeReplicas }} \
--multi-master {{ .Values.multiMaster }} \
--appendonly {{ .Values.appendonly }} \
--bind 0.0.0.0 \
--port "$port" \
--protected-mode {{ .Values.protectedMode }} \
--server-threads {{ .Values.threads | int }} \
--active-replica {{ .Values.activeReplicas | quote }} \
--multi-master {{ .Values.multiMaster | quote }} \
--appendonly {{ .Values.appendonly | quote }} \
--bind "0.0.0.0" \
--port "${port}" \
--protected-mode {{ .Values.protectedMode | quote }} \
--server-threads {{ .Values.threads | quote }} \
{{- if .Values.existingSecret }}
--masterauth $REDIS_PASSWORD \
--requirepass $REDIS_PASSWORD \
--masterauth "${REDIS_PASSWORD}" \
--requirepass "${REDIS_PASSWORD}" \
{{- else if .Values.password }}
--masterauth {{ .Values.password }} \
--requirepass {{ .Values.password }} \
--masterauth {{ .Values.password | quote }} \
--requirepass {{ .Values.password | quote }} \
{{- end }}
{{- range $key, $value := .Values.configExtraArgs }}
{{- if $value }}
--{{ $key }} {{ $value }} \
--{{ $key }} {{ $value | quote }} \
{{- else }}
--{{ $key }} \
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion keydb/values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
nameOverride: ""
fullnameOverride: ""

image: eqalpha/keydb:x86_64_v6.0.18
image: eqalpha/keydb:x86_64_v6.2.0
imagePullPolicy: IfNotPresent

nodes: 3
Expand Down

0 comments on commit 185f73b

Please sign in to comment.