From a2fb2f74c0cc115d42375160dfbe5b76747d8b32 Mon Sep 17 00:00:00 2001 From: kjeld Schouten-Lebbing Date: Fri, 2 Jul 2021 20:49:23 +0200 Subject: [PATCH] try fix nextcloud cronjob error --- charts/develop/nextcloud/Chart.yaml | 2 +- charts/develop/nextcloud/templates/_cronjob.tpl | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/charts/develop/nextcloud/Chart.yaml b/charts/develop/nextcloud/Chart.yaml index ce03dd2f7f4..3998672a247 100644 --- a/charts/develop/nextcloud/Chart.yaml +++ b/charts/develop/nextcloud/Chart.yaml @@ -35,4 +35,4 @@ sources: - https://github.com/nextcloud/docker - https://github.com/nextcloud/helm type: application -version: 1.0.0 +version: 1.0.1 diff --git a/charts/develop/nextcloud/templates/_cronjob.tpl b/charts/develop/nextcloud/templates/_cronjob.tpl index e59e99f7743..c7c95afb852 100644 --- a/charts/develop/nextcloud/templates/_cronjob.tpl +++ b/charts/develop/nextcloud/templates/_cronjob.tpl @@ -1,11 +1,12 @@ {{/* Define the cronjob */}} {{- define "nextcloud.cronjob" -}} {{- $jobName := include "common.names.fullname" . -}} + --- -apiVersion: batch/v1beta1 +apiVersion: batch/v1 kind: CronJob metadata: - name: {{ printf "%s-auto-permissions" $jobName }} + name: {{ printf "%s-cronjob" $jobName }} labels: {{- include "common.labels" . | nindent 4 }} spec: @@ -42,6 +43,6 @@ spec: {{- end }} {{- end }} resources: -{{ toYaml (default .Values.resources .Values.cronjob.resources) | indent 16 }} +{{ toYaml .Values.resources | indent 16 }} {{- end -}}