{{- if eq .Values.openproject.cache.store "memcache" }}
---
apiVersion: "v1"
kind: "Secret"
metadata:
  name: "{{ include "common.names.fullname" . }}-memcached"
  labels:
    {{- include "common.labels.standard" . | nindent 4 }}
stringData:
  {{- if .Values.memcached.bundled }}
  OPENPROJECT_CACHE__MEMCACHE__SERVER: "{{ .Release.Name }}-memcached:11211"
  {{- else }}
  OPENPROJECT_CACHE__MEMCACHE__SERVER: "{{ .Values.memcached.connection.host }}:{{.Values.memcached.connection.port }}"
  {{- end }}
...
{{- end }}
