From d2066ea0fe456e23451a78e49dbbd19d9f6c8791 Mon Sep 17 00:00:00 2001 From: lebenitza Date: Mon, 25 Nov 2019 17:54:14 +0200 Subject: [PATCH] Make helm hook job object have the same command as the CronJob (#19090) Signed-off-by: Mihai Anei --- stable/elasticsearch-curator/Chart.yaml | 2 +- .../elasticsearch-curator/templates/hooks/job.install.yaml | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/stable/elasticsearch-curator/Chart.yaml b/stable/elasticsearch-curator/Chart.yaml index 471a3560b9..e72b8b3425 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.1.1 +version: 2.1.2 home: https://github.com/elastic/curator keywords: - curator diff --git a/stable/elasticsearch-curator/templates/hooks/job.install.yaml b/stable/elasticsearch-curator/templates/hooks/job.install.yaml index d2056d0ba9..d0840ed6dd 100644 --- a/stable/elasticsearch-curator/templates/hooks/job.install.yaml +++ b/stable/elasticsearch-curator/templates/hooks/job.install.yaml @@ -49,7 +49,10 @@ spec: {{- if $.Values.extraVolumeMounts }} {{ toYaml $.Values.extraVolumeMounts | indent 12 }} {{- end }} - command: [ "curator" ] +{{ if .Values.command }} + command: +{{ toYaml .Values.command | indent 12 }} +{{- end }} args: [ "--config", "/etc/es-curator/config.yml", "/etc/es-curator/action_file.yml" ] resources: {{ toYaml $.Values.resources | indent 12 }}