From cdadb792450c1a1dbe699d98628489d3fac7f998 Mon Sep 17 00:00:00 2001 From: "r.emelyanov" Date: Mon, 9 Dec 2024 11:29:45 +0700 Subject: [PATCH] feat: Added suspend parameter for CronJob --- CHANGELOG.md | 11 +++++++++-- README.md | 1 + templates/cronjob.yml | 1 + 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a4b86a4..9342805 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,16 @@ # Changelog -## 2.8.1 - September 04, 2024 -* feature: Implemented support for SealedSecrets ([#]https://github.com/nixys/nxs-universal-chart/issues/77) +## 2.8.2 - December 09, 2024 +* feature: Implemented support for SealedSecrets ([#77](https://github.com/nixys/nxs-universal-chart/issues/77)) +* feature: Added cronjob suspend parameter * docs update +## 2.8.1 - August 30, 2024 +* feature: Added the ability to set k8s version, helm version, API versions of k8s-resources via values.yaml (global.helmVersion etc.) +* feature: Added the ability to set tolerations at the level of all deployed workloads. It's important to note that tolerations at the level of a specific resource will override global tolerations +* fix: Fixed syntax errors in _app.tpl that caused lines to stick together (helpers.app.selectorLabels, helpers.app.genericSelectorLabels) +* fix: Fixed template for Istio DestinationRule: added conditions to check if subsets and exportTo are set in values.yaml + ## 2.8.0 - August 06, 2024 * feature: Implemented native support for Istio resources. ([#71]https://github.com/nixys/nxs-universal-chart/issues/71) * docs update diff --git a/README.md b/README.md index 79745c6..d2465f5 100644 --- a/README.md +++ b/README.md @@ -471,6 +471,7 @@ Secret `data` object is a map where value can be a string, json or base64 encode | `labels` | Extra CronJob labels | `{}` | | `annotations` | Extra CronJob annotations | `{}` | | `singleOnly` | Forbid concurrency policy | `"false"` | +| `suspend` | Suspend execution of Jobs | `false` | | `schedule` | Cronjob scheduling | `` | | `startingDeadlineSeconds` | Duration for starting CronJob | `` | | `successfulJobsHistoryLimit` | Limitation of completed jobs should be kept | `3` | diff --git a/templates/cronjob.yml b/templates/cronjob.yml index d3533fc..72a640c 100644 --- a/templates/cronjob.yml +++ b/templates/cronjob.yml @@ -23,6 +23,7 @@ metadata: {{- with $general.annotations }}{{- include "helpers.tplvalues.render" (dict "value" . "context" $) | nindent 4 }}{{- end }} {{- with .annotations }}{{- include "helpers.tplvalues.render" (dict "value" . "context" $) | nindent 4 }}{{- end }} spec: + suspend: {{ default false .suspend }} schedule: {{ include "helpers.tplvalues.render" (dict "value" .schedule "context" $) | quote }} {{- if .singleOnly }} concurrencyPolicy: Forbid