It is currently not possible to suspend the CronJob, even though Kubernetes supports this natively. This PR adds support for this option.
The suspend option defaults to false when omitted, so always setting spec.suspend could result in a dirty diffs even though functionally nothing changes. Therefore I've opted to only add it when explicitly set.
Description of the change
It is currently not possible to suspend the CronJob, even though Kubernetes supports this natively. This PR adds support for this option.
The suspend option defaults to
false
when omitted, so always settingspec.suspend
could result in a dirty diffs even though functionally nothing changes. Therefore I've opted to only add it when explicitly set.Added
Adds the ability to suspend the CronJob as described here: https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#schedule-suspension.
Benefits
More feature complete common chart.
Possible drawbacks
The documentation recommends setting a starting deadline. The common chart already sets this by default:
startingDeadlineSeconds: 30
.Checklist
Chart.yaml
has been bumped according to Semantic Versioning.artifacthub.io/changes
changelog annotation has been updated inChart.yaml
. See Artifact Hub documentation for more info.values.yaml
file.