diff --git a/README.md b/README.md index 38cd42c..0c3c124 100644 --- a/README.md +++ b/README.md @@ -280,6 +280,8 @@ scaling: redis: host: password: + existingSecret: + existingSecretPasswordKey: redis: enabled: false diff --git a/templates/_helpers.tpl b/templates/_helpers.tpl index 2b2cf48..b10ff81 100644 --- a/templates/_helpers.tpl +++ b/templates/_helpers.tpl @@ -92,6 +92,13 @@ Selector labels - name: "QUEUE_BULL_REDIS_PASSWORD" value: "{{ .Values.scaling.redis.password }}" {{ end }} +{{- if and .Values.scaling.redis.existingSecret .Values.scaling.redis.existingSecretPasswordKey }} +- name: "QUEUE_BULL_REDIS_PASSWORD" + valueFrom: + secretKeyRef: + name: {{ .Values.scaling.redis.existingSecret }} + key: {{ .Values.scaling.redis.existingSecretPasswordKey }} +{{ end }} {{- if .Values.scaling.webhook.enabled }} - name: "N8N_DISABLE_PRODUCTION_MAIN_PROCESS" value: "true" diff --git a/values.yaml b/values.yaml index 2f6e800..3c11d72 100644 --- a/values.yaml +++ b/values.yaml @@ -321,6 +321,8 @@ scaling: redis: host: password: + existingSecret: + existingSecretPasswordKey: ## Bitnami Redis configuration