| gio | c916187 | 2024-04-21 10:46:35 +0400 | [diff] [blame^] | 1 | {{- if eq .Values.openproject.cache.store "memcache" }} |
| 2 | --- |
| 3 | apiVersion: "v1" |
| 4 | kind: "Secret" |
| 5 | metadata: |
| 6 | name: "{{ include "common.names.fullname" . }}-memcached" |
| 7 | labels: |
| 8 | {{- include "common.labels.standard" . | nindent 4 }} |
| 9 | stringData: |
| 10 | {{- if .Values.memcached.bundled }} |
| 11 | OPENPROJECT_CACHE__MEMCACHE__SERVER: "{{ .Release.Name }}-memcached:11211" |
| 12 | {{- else }} |
| 13 | OPENPROJECT_CACHE__MEMCACHE__SERVER: "{{ .Values.memcached.connection.host }}:{{.Values.memcached.connection.port }}" |
| 14 | {{- end }} |
| 15 | ... |
| 16 | {{- end }} |