try fix nextcloud cronjob error
This commit is contained in:
@@ -35,4 +35,4 @@ sources:
|
|||||||
- https://github.com/nextcloud/docker
|
- https://github.com/nextcloud/docker
|
||||||
- https://github.com/nextcloud/helm
|
- https://github.com/nextcloud/helm
|
||||||
type: application
|
type: application
|
||||||
version: 1.0.0
|
version: 1.0.1
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
{{/* Define the cronjob */}}
|
{{/* Define the cronjob */}}
|
||||||
{{- define "nextcloud.cronjob" -}}
|
{{- define "nextcloud.cronjob" -}}
|
||||||
{{- $jobName := include "common.names.fullname" . -}}
|
{{- $jobName := include "common.names.fullname" . -}}
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: batch/v1beta1
|
apiVersion: batch/v1
|
||||||
kind: CronJob
|
kind: CronJob
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ printf "%s-auto-permissions" $jobName }}
|
name: {{ printf "%s-cronjob" $jobName }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "common.labels" . | nindent 4 }}
|
{{- include "common.labels" . | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
@@ -42,6 +43,6 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
resources:
|
resources:
|
||||||
{{ toYaml (default .Values.resources .Values.cronjob.resources) | indent 16 }}
|
{{ toYaml .Values.resources | indent 16 }}
|
||||||
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
Reference in New Issue
Block a user