[Incubator/elasticsearch-curator] fix nodeSelector, tolerations, affinity (#7273)

* fix nodeSelector, tolerations, affinity

* fix namespace param

* bump chart version

* add job labels
This commit is contained in:
Taehyun Kim
2018-08-21 04:32:34 -07:00
committed by k8s-ci-robot
parent 180acb186e
commit b520660b6b
3 changed files with 11 additions and 7 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: 0.4.0
version: 0.4.1
home: https://github.com/elastic/curator
keywords:
- curator
@@ -3,4 +3,4 @@ A CronJob will run with schedule {{ .Values.cronjob.schedule }}.
The Jobs will not be removed automagically when deleting this Helm chart.
To remove these jobs, run the following :
kubectl -n logging delete job -l app={{ template "elasticsearch-curator.name" . }}
kubectl -n {{ .Release.Namespace }} delete job -l app={{ template "elasticsearch-curator.name" . }},release={{ .Release.Name }}
@@ -7,7 +7,7 @@ metadata:
chart: {{ template "elasticsearch-curator.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
annotations:
annotations:
{{ toYaml .Values.cronjob.annotations | indent 4 }}
spec:
schedule: "{{ .Values.cronjob.schedule }}"
@@ -21,13 +21,17 @@ spec:
successfulJobsHistoryLimit: {{ . }}
{{- end }}
jobTemplate:
metadata:
labels:
app: {{ template "elasticsearch-curator.name" . }}
release: {{ .Release.Name }}
spec:
template:
metadata:
labels:
app: {{ template "elasticsearch-curator.name" . }}
release: {{ .Release.Name }}
annotations:
annotations:
{{ toYaml .Values.pod.annotations | indent 12 }}
spec:
volumes:
@@ -56,14 +60,14 @@ spec:
resources:
{{ toYaml .Values.resources | indent 16 }}
{{- with .Values.nodeSelector }}
nodeSelector:
nodeSelector:
{{ toYaml . | indent 12 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
affinity:
{{ toYaml . | indent 12 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
tolerations:
{{ toYaml . | indent 12 }}
{{- end }}