Disable memcached when Flux is in readonly mode
-{{- if .Values.memcached.enabled }}
+{{- if and (eq .Values.memcached.enabled true) (eq .Values.git.readonly false) }}
apiVersion: apps/v1
kind: Deployment
metadata:
