[stable/elasticsearch-curator] add dry-run option to chart (#11211)

Signed-off-by: Gerald Barker <gerald.barker@gmail.com>
This commit is contained in:
Gerald Barker
2019-02-07 15:15:37 -08:00
committed by Kubernetes Prow Robot
parent 79aa425075
commit efa17d3fa4
4 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "5.5.4"
description: A Helm chart for Elasticsearch Curator
name: elasticsearch-curator
version: 1.1.0
version: 1.2.0
home: https://github.com/elastic/curator
keywords:
- curator
+1
View File
@@ -40,6 +40,7 @@ their default values.
| `cronjob.failedJobsHistoryLimit` | Specify the number of failed Jobs to keep | `nil` |
| `cronjob.successfulJobsHistoryLimit` | Specify the number of completed Jobs to keep | `nil` |
| `pod.annotations` | Annotations to add to the pod | {} |
| `dryrun` | Run Curator in dry-run mode | `false` |
| `configMaps.action_file_yml` | Contents of the Curator action_file.yml | See values.yaml |
| `configMaps.config_yml` | Contents of the Curator config.yml (overrides config) | See values.yaml |
| `resources` | Resource requests and limits | {} |
@@ -60,7 +60,11 @@ spec:
{{ toYaml .Values.extraVolumeMounts | indent 16 }}
{{- end }}
command: [ "curator" ]
{{- if .Values.dryrun }}
args: [ "--dry-run", "--config", "/etc/es-curator/config.yml", "/etc/es-curator/action_file.yml" ]
{{- else }}
args: [ "--config", "/etc/es-curator/config.yml", "/etc/es-curator/action_file.yml" ]
{{- end }}
resources:
{{ toYaml .Values.resources | indent 16 }}
{{- with .Values.nodeSelector }}
+3
View File
@@ -22,6 +22,9 @@ hooks:
install: false
upgrade: false
# run curator in dry-run mode
dryrun: false
configMaps:
# Delete indices older than 7 days
action_file_yml: |-