mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/elasticsearch-curator] add dry-run option to chart (#11211)
Signed-off-by: Gerald Barker <gerald.barker@gmail.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
79aa425075
commit
efa17d3fa4
@@ -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
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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: |-
|
||||
|
||||
Reference in New Issue
Block a user