mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/elasticsearch-curator] add env option (#11533)
* Add env option to elasticsearch-curator. Signed-off-by: Christian Groschupp <christian@groschupp.org> * Allow to overwrite command in elasticsearch-curator. Signed-off-by: Christian Groschupp <christian@groschupp.org> * Update README.md in elasticsearch-curator. Signed-off-by: Christian Groschupp <christian@groschupp.org> * Bump elasticsearch-curator version to 1.2.1. Signed-off-by: Christian Groschupp <christian@groschupp.org>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
76601eac64
commit
aab1621af0
@@ -2,7 +2,7 @@ apiVersion: v1
|
||||
appVersion: "5.5.4"
|
||||
description: A Helm chart for Elasticsearch Curator
|
||||
name: elasticsearch-curator
|
||||
version: 1.2.0
|
||||
version: 1.2.1
|
||||
home: https://github.com/elastic/curator
|
||||
keywords:
|
||||
- curator
|
||||
|
||||
@@ -40,7 +40,9 @@ 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` |
|
||||
| `dryrun` | Run Curator in dry-run mode | `false` |
|
||||
| `env` | Environment variables to add to the cronjob container | {} |
|
||||
| `command` | Command to execute | ["curator"] |
|
||||
| `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 | {} |
|
||||
|
||||
@@ -58,12 +58,22 @@ spec:
|
||||
mountPath: /etc/es-curator
|
||||
{{- if .Values.extraVolumeMounts }}
|
||||
{{ toYaml .Values.extraVolumeMounts | indent 16 }}
|
||||
{{ end }}
|
||||
{{ if .Values.command }}
|
||||
command:
|
||||
{{ toYaml .Values.command | 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 }}
|
||||
env:
|
||||
{{- if .Values.env }}
|
||||
{{- range $key,$value := .Values.env }}
|
||||
- name: {{ $key | upper | quote}}
|
||||
value: {{ $value | quote}}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
resources:
|
||||
{{ toYaml .Values.resources | indent 16 }}
|
||||
|
||||
@@ -25,6 +25,9 @@ hooks:
|
||||
# run curator in dry-run mode
|
||||
dryrun: false
|
||||
|
||||
command: ["curator"]
|
||||
env: {}
|
||||
|
||||
configMaps:
|
||||
# Delete indices older than 7 days
|
||||
action_file_yml: |-
|
||||
|
||||
Reference in New Issue
Block a user