From 6dc19d0cdd6673c92c6badc081c32f231625dd69 Mon Sep 17 00:00:00 2001 From: Cromefire_ Date: Sun, 7 Dec 2025 01:28:22 +0100 Subject: [PATCH 1/4] Added activeDeadlineSeconds option to cronjob Signed-off-by: Cromefire_ --- charts/nextcloud/README.md | 1 + charts/nextcloud/templates/cronjob.yaml | 3 +++ charts/nextcloud/values.yaml | 1 + 3 files changed, 5 insertions(+) diff --git a/charts/nextcloud/README.md b/charts/nextcloud/README.md index e8282141..2f3bb007 100644 --- a/charts/nextcloud/README.md +++ b/charts/nextcloud/README.md @@ -222,6 +222,7 @@ The following table lists the configurable parameters of the nextcloud chart and | `cronjob.cronjob.podLabels` | An array of service labels | `nil` | | `cronjob.cronjob.annotations` | An array of service annotations | `nil` | | `cronjob.cronjob.backoffLimit` | The number of retries before marking a job as failed | `1` | +| `cronjob.cronjob.activeDeadlineSeconds` | The number of seconds before cancelling a job | `nil` | | `cronjob.cronjob.affinity` | The affinity settings for the cron job | `{}` | | `cronjob.cronjob.resources` | The resource requests/limits for the cron job | `{}` | | `cronjob.cronjob.priorityClassName` | Priority Class for cronjob. Defaults to .priorityClassName | `nil` | diff --git a/charts/nextcloud/templates/cronjob.yaml b/charts/nextcloud/templates/cronjob.yaml index 3a582b21..c13c6fc8 100644 --- a/charts/nextcloud/templates/cronjob.yaml +++ b/charts/nextcloud/templates/cronjob.yaml @@ -28,6 +28,9 @@ spec: {{- end }} spec: backoffLimit: {{ .backoffLimit }} + {{- if .activeDeadlineSeconds }} + activeDeadlineSeconds: {{ .activeDeadlineSeconds }} + {{- end }} template: metadata: labels: diff --git a/charts/nextcloud/values.yaml b/charts/nextcloud/values.yaml index 9c44fd28..dfde6ed8 100644 --- a/charts/nextcloud/values.yaml +++ b/charts/nextcloud/values.yaml @@ -650,6 +650,7 @@ cronjob: schedule: "*/5 * * * *" successfulJobsHistoryLimit: 3 failedJobsHistoryLimit: 5 + activeDeadlineSeconds: # -- Additional labels for cronjob labels: {} # -- Additional labels for cronjob pod From 3eb110c77acdc1df254e4f22728031b1712711f8 Mon Sep 17 00:00:00 2001 From: Cromefire_ Date: Sun, 7 Dec 2025 02:01:24 +0100 Subject: [PATCH 2/4] Bumped chart minor version Signed-off-by: Cromefire_ --- charts/nextcloud/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/nextcloud/Chart.yaml b/charts/nextcloud/Chart.yaml index 3633ea10..db560bbd 100644 --- a/charts/nextcloud/Chart.yaml +++ b/charts/nextcloud/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: nextcloud -version: 8.6.0 +version: 8.7.0 # renovate: image=docker.io/library/nextcloud appVersion: 32.0.2 description: A file sharing server that puts the control and security of your own data back into your hands. From a9e3aaa5d32c292a72c4095f38fdf4a9cb72cd92 Mon Sep 17 00:00:00 2001 From: Cromefire_ Date: Thu, 11 Dec 2025 13:01:32 +0100 Subject: [PATCH 3/4] Use with instead of if Co-authored-by: WrenIX <133280015+wrenix@users.noreply.github.com> Signed-off-by: Cromefire_ --- charts/nextcloud/templates/cronjob.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/charts/nextcloud/templates/cronjob.yaml b/charts/nextcloud/templates/cronjob.yaml index c13c6fc8..0d2b8576 100644 --- a/charts/nextcloud/templates/cronjob.yaml +++ b/charts/nextcloud/templates/cronjob.yaml @@ -28,7 +28,8 @@ spec: {{- end }} spec: backoffLimit: {{ .backoffLimit }} - {{- if .activeDeadlineSeconds }} + {{- with .activeDeadlineSeconds }} + activeDeadlineSeconds: {{ . }} activeDeadlineSeconds: {{ .activeDeadlineSeconds }} {{- end }} template: From 510afbc6003e430877a14abe3f86f69fb95d3e0d Mon Sep 17 00:00:00 2001 From: Cromefire_ Date: Thu, 11 Dec 2025 13:02:52 +0100 Subject: [PATCH 4/4] Removed duplicate key Signed-off-by: Cromefire_ --- charts/nextcloud/templates/cronjob.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/charts/nextcloud/templates/cronjob.yaml b/charts/nextcloud/templates/cronjob.yaml index 0d2b8576..3beeff4e 100644 --- a/charts/nextcloud/templates/cronjob.yaml +++ b/charts/nextcloud/templates/cronjob.yaml @@ -30,7 +30,6 @@ spec: backoffLimit: {{ .backoffLimit }} {{- with .activeDeadlineSeconds }} activeDeadlineSeconds: {{ . }} - activeDeadlineSeconds: {{ .activeDeadlineSeconds }} {{- end }} template: metadata: