diff --git a/charts/redis/templates/redis-standalone.yaml b/charts/redis/templates/redis-standalone.yaml index 8a026b794..8a76723d2 100644 --- a/charts/redis/templates/redis-standalone.yaml +++ b/charts/redis/templates/redis-standalone.yaml @@ -44,6 +44,7 @@ spec: securityContext: {{ toYaml .Values.redisExporter.securityContext | nindent 6 }} {{- end }} + {{- if (or .Values.externalConfig.enabled .Values.redisStandalone.maxMemoryPercentOfLimit) }} redisConfig: {{- if .Values.externalConfig.enabled }} additionalRedisConfig: "{{ .Values.redisStandalone.name | default .Release.Name }}-ext-config" @@ -53,6 +54,7 @@ spec: maxMemoryPercentOfLimit: {{ .Values.redisStandalone.maxMemoryPercentOfLimit }} {{- end }} {{- end }} + {{- end }} {{- if .Values.storageSpec }} storage: {{ toYaml .Values.storageSpec | nindent 4 }} {{- end }}