diff --git a/charts/develop/nextcloud/Chart.yaml b/charts/develop/nextcloud/Chart.yaml index 287af8c2fea..83d5d6f2cde 100644 --- a/charts/develop/nextcloud/Chart.yaml +++ b/charts/develop/nextcloud/Chart.yaml @@ -35,4 +35,5 @@ sources: - https://github.com/nextcloud/docker - https://github.com/nextcloud/helm type: application -version: 1.0.7 +version: 1.0.8 + diff --git a/charts/develop/nextcloud/templates/_cronjob.tpl b/charts/develop/nextcloud/templates/_cronjob.tpl index d465f4d4ced..9346ea6690a 100644 --- a/charts/develop/nextcloud/templates/_cronjob.tpl +++ b/charts/develop/nextcloud/templates/_cronjob.tpl @@ -25,17 +25,23 @@ spec: metadata: spec: restartPolicy: Never + {{- with (include "common.controller.volumes" . | trim) }} + volumes: + {{- nindent 12 . }} + {{- end }} containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ default .Values.image.tag }}" imagePullPolicy: {{ default .Values.image.pullPolicy }} - command: [ "curl" ] + command: [ "php" ] args: - - "-k" - - "--fail" - - "-L" - - "http://{{ template "common.names.fullname" . }}:{{ .Values.service.main.ports.main.port }}/cron.php" + - "-f" + - "/var/www/html/cron.php" # Will mount configuration files as www-data (id: 33) by default for nextcloud + {{- with (include "common.controller.volumeMounts" . | trim) }} + volumeMounts: + {{ nindent 16 . }} + {{- end }} securityContext: {{- if .Values.securityContext }} {{- with .Values.securityContext }}