Set ELASTICSEARCH_PLUGINS only when '.Values.plugins' is set

This commit is contained in:
juan131
2018-12-12 11:06:24 +01:00
parent 615aadde88
commit 7e486bd05c
6 changed files with 10 additions and 2 deletions
@@ -76,8 +76,10 @@ spec:
env:
- name: ELASTICSEARCH_CLUSTER_NAME
value: {{ .Values.name | quote }}
{{- if .Values.plugins }}
- name: ELASTICSEARCH_PLUGINS
value: {{ .Values.plugins | quote }}
{{- end }}
- name: ELASTICSEARCH_HEAP_SIZE
value: {{ .Values.coordinating.heapSize | quote }}
- name: ELASTICSEARCH_IS_DEDICATED_NODE
@@ -72,8 +72,10 @@ spec:
env:
- name: ELASTICSEARCH_CLUSTER_NAME
value: {{ .Values.name | quote }}
{{- if .Values.plugins }}
- name: ELASTICSEARCH_PLUGINS
value: {{ .Values.plugins | quote }}
{{- end }}
- name: ELASTICSEARCH_HEAP_SIZE
value: {{ .Values.data.heapSize | quote }}
- name: ELASTICSEARCH_IS_DEDICATED_NODE
@@ -77,8 +77,10 @@ spec:
env:
- name: ELASTICSEARCH_CLUSTER_NAME
value: {{ .Values.name | quote }}
{{- if .Values.plugins }}
- name: ELASTICSEARCH_PLUGINS
value: {{ .Values.plugins | quote }}
{{- end }}
- name: ELASTICSEARCH_HEAP_SIZE
value: {{ .Values.ingest.heapSize | quote }}
- name: ELASTICSEARCH_IS_DEDICATED_NODE
@@ -77,7 +77,9 @@ spec:
env:
- name: ELASTICSEARCH_CLUSTER_NAME
value: {{ .Values.name | quote }}
{{- if .Values.plugins }}
- name: ELASTICSEARCH_PLUGINS
{{- end }}
value: {{ .Values.plugins | quote }}
- name: ELASTICSEARCH_HEAP_SIZE
value: {{ .Values.master.heapSize | quote }}
+1 -1
View File
@@ -35,7 +35,7 @@ name: elastic
## Customize elasticsearch configuration
## ref: https://www.elastic.co/guide/en/elasticsearch/reference/current/settings.html
##
config:
# config:
## Elasticsearch master-eligible node parameters
##
+1 -1
View File
@@ -54,7 +54,7 @@ name: elastic
## Customize elasticsearch configuration
## ref: https://www.elastic.co/guide/en/elasticsearch/reference/current/settings.html
##
config:
# config:
## Elasticsearch master-eligible node parameters
##