[stable/elasticsearch-curator] Fixed values for helm hooks and added CI test for it (#19186)

* Make helm hook job object have the same command as the CronJob

Signed-off-by: Mihai Anei <mihai.anei@gmail.com>

* Fixed parsing of helm hook job command. Added ci values for testing them

Signed-off-by: Mihai Anei <mihai.anei@gmail.com>

* Add CI test for default values of the chart

Signed-off-by: Mihai Anei <mihai.anei@gmail.com>
This commit is contained in:
lebenitza
2019-12-09 08:16:03 -08:00
committed by Kubernetes Prow Robot
parent ceda4dc77b
commit 547da1439e
4 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "5.7.6"
description: A Helm chart for Elasticsearch Curator
name: elasticsearch-curator
version: 2.1.2
version: 2.1.3
home: https://github.com/elastic/curator
keywords:
- curator
@@ -0,0 +1 @@
# Leave this file empty to ensure that CI runs builds against the default configuration in values.yaml.
@@ -0,0 +1,5 @@
# Testing hooks are generated properly
hooks:
install: true
upgrade: true
@@ -49,9 +49,9 @@ spec:
{{- if $.Values.extraVolumeMounts }}
{{ toYaml $.Values.extraVolumeMounts | indent 12 }}
{{- end }}
{{ if .Values.command }}
{{ if $.Values.command }}
command:
{{ toYaml .Values.command | indent 12 }}
{{ toYaml $.Values.command | indent 12 }}
{{- end }}
args: [ "--config", "/etc/es-curator/config.yml", "/etc/es-curator/action_file.yml" ]
resources: