Skip to content

Commit

Permalink
feat(Matomo): Respect extraEnv of matomo.cronjob.archive
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminJoerger committed Sep 20, 2023
1 parent 73f6bfc commit 9457f15
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/matomo/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
labels: {{- include "matomo.labels" . | nindent 4 }}
data:
php.ini: |
memory_limit={{ .Values.extraEnvs.PHP_MEMORY_LIMIT }}
memory_limit={{ default .Values.cronjobs.archive.extraEnvs.PHP_MEMORY_LIMIT .Values.extraEnvs.PHP_MEMORY_LIMIT }}
mysqlnd.net_read_timeout={{ .Values.extraEnvs.MYSQLND_NET_READ_TIMEOUT }}
default_socket_timeout={{ .Values.extraEnvs.DEFAULT_SOCKET_TIMEOUT }}
matomo.conf: |
Expand Down
4 changes: 4 additions & 0 deletions charts/matomo/templates/cronjob-archive.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ spec:
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
{{- range $key, $value := .Values.cronjob.archive.extraEnvs }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
envFrom:
- secretRef:
name: {{ include "matomo.fullname" . }}-envs
Expand Down

0 comments on commit 9457f15

Please sign in to comment.