diff --git a/keydb/Chart.yaml b/keydb/Chart.yaml index 920cf70..ffb6274 100644 --- a/keydb/Chart.yaml +++ b/keydb/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: keydb description: A Helm chart for KeyDB multimaster setup type: application -version: 0.7.1 +version: 0.8.0 keywords: - keydb - redis diff --git a/keydb/README.md b/keydb/README.md index a788254..90b9e01 100644 --- a/keydb/README.md +++ b/keydb/README.md @@ -43,6 +43,6 @@ The following table lists the configurable parameters of the KeyDB chart and the | `persistentVolume.accessModes` | Volume access modes | `[ReadWriteOnce]` | | `persistentVolume.size` | Size of the volume | `1Gi` | | `persistentVolume.storageClass` | StorageClassName for volume | `"-"` | -| `replicaServeStaleData` | KeyDB replica-serve-stale-data setting | `"yes"` | +| `configExtraArgs` | Additional configuration arguments for KeyDB | `{}` | | `resources` | K8s Resources for KeyDB containers | `{}` | | `securityContext` | K8s SecurityContext for KeyDB pods | `{}` | diff --git a/keydb/templates/cm-utils.yaml b/keydb/templates/cm-utils.yaml index 28d8a82..4f7c700 100644 --- a/keydb/templates/cm-utils.yaml +++ b/keydb/templates/cm-utils.yaml @@ -24,10 +24,16 @@ data: --bind 0.0.0.0 \ --port "$port" \ --protected-mode no \ - --replica-serve-stale-data {{ .Values.replicaServeStaleData }} \ --server-threads {{ .Values.threads | int }} \ {{- if .Values.password }} --masterauth {{ .Values.password }} \ --requirepass {{ .Values.password }} \ {{- end }} + {{- range $key, $value := .Values.configExtraArgs }} + {{- if $value }} + --{{ $key }} {{ $value }} \ + {{- else }} + --{{ $key }} \ + {{- end }} + {{- end }} "${replicas[@]}" diff --git a/keydb/values.yaml b/keydb/values.yaml index 4807108..d8d9ee8 100644 --- a/keydb/values.yaml +++ b/keydb/values.yaml @@ -12,8 +12,9 @@ port: 6379 threads: 2 +configExtraArgs: {} + appendonly: "no" -replicaServeStaleData: "yes" persistentVolume: enabled: true