fix valkey templating issues, add more docs

This commit is contained in:
jessebot
2025-01-18 10:55:23 +01:00
parent 8ba545ed6a
commit 893130411c
4 changed files with 21 additions and 10 deletions
@@ -190,12 +190,16 @@ spec:
value: {{ printf "%s-primary" (.Values.valkey.fullnameOverride) }}
{{- end }}
- name: REDIS_PORT
{{- if .Values.externalValkey }}
{{- if .Values.externalValkey.existingSecret }}
valueFrom:
secretKeyRef:
name: {{ .Values.externalValkey.existingSecret }}
key: {{ .Values.externalValkey.existingSecretKeys.port }}
{{- else }}
value: {{ .Values.externalValkey.port }}
{{- end }}
{{- else }}
value: {{ .Values.valkey.primary.service.ports.valkey | quote }}
{{- end }}
- name: REDIS_PASSWORD