diff --git a/stable/elasticsearch-curator/Chart.yaml b/stable/elasticsearch-curator/Chart.yaml index 6def65efd6..3754ca976a 100644 --- a/stable/elasticsearch-curator/Chart.yaml +++ b/stable/elasticsearch-curator/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: "5.7.6" description: A Helm chart for Elasticsearch Curator name: elasticsearch-curator -version: 2.0.3 +version: 2.1.0 home: https://github.com/elastic/curator keywords: - curator diff --git a/stable/elasticsearch-curator/README.md b/stable/elasticsearch-curator/README.md index 2057b85dd3..7a83f12048 100644 --- a/stable/elasticsearch-curator/README.md +++ b/stable/elasticsearch-curator/README.md @@ -50,6 +50,7 @@ their default values. | `cronjob.concurrencyPolicy` | `Allow|Forbid|Replace` concurrent jobs | `nil` | | `cronjob.failedJobsHistoryLimit` | Specify the number of failed Jobs to keep | `nil` | | `cronjob.successfulJobsHistoryLimit` | Specify the number of completed Jobs to keep | `nil` | +| `cronjob.jobRestartPolicy` | Control the Job restartPolicy | `Never` | | `pod.annotations` | Annotations to add to the pod | {} | | `dryrun` | Run Curator in dry-run mode | `false` | | `env` | Environment variables to add to the cronjob container | {} | diff --git a/stable/elasticsearch-curator/templates/cronjob.yaml b/stable/elasticsearch-curator/templates/cronjob.yaml index 37274f6a80..52feefb2bf 100644 --- a/stable/elasticsearch-curator/templates/cronjob.yaml +++ b/stable/elasticsearch-curator/templates/cronjob.yaml @@ -45,7 +45,7 @@ spec: {{- if .Values.extraVolumes }} {{ toYaml .Values.extraVolumes | indent 12 }} {{- end }} - restartPolicy: Never + restartPolicy: {{ .Values.cronjob.jobRestartPolicy }} {{- if .Values.priorityClassName }} priorityClassName: "{{ .Values.priorityClassName }}" {{- end }} diff --git a/stable/elasticsearch-curator/values.yaml b/stable/elasticsearch-curator/values.yaml index 460f2a46ed..320c65404a 100644 --- a/stable/elasticsearch-curator/values.yaml +++ b/stable/elasticsearch-curator/values.yaml @@ -9,6 +9,7 @@ cronjob: concurrencyPolicy: "" failedJobsHistoryLimit: "" successfulJobsHistoryLimit: "" + jobRestartPolicy: Never pod: annotations: {}