From 09f59053beeb8fb54a919eff0d9ce5c2cff281dd Mon Sep 17 00:00:00 2001 From: James Tutton Date: Fri, 31 May 2019 17:31:28 +0100 Subject: [PATCH 1/2] Fix to Volume Idents --- elasticsearch/templates/statefulset.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elasticsearch/templates/statefulset.yaml b/elasticsearch/templates/statefulset.yaml index 00f552f28..286426197 100644 --- a/elasticsearch/templates/statefulset.yaml +++ b/elasticsearch/templates/statefulset.yaml @@ -101,7 +101,7 @@ spec: name: {{ template "uname" . }}-config {{- end }} {{- if .Values.extraVolumes }} -{{ tpl .Values.extraVolumes . | indent 6 }} +{{ tpl .Values.extraVolumes . | indent 8 }} {{- end }} {{- if .Values.imagePullSecrets }} imagePullSecrets: From ce4521de75ea4528a3d797c3f326043b7a74fd12 Mon Sep 17 00:00:00 2001 From: James Tutton Date: Fri, 31 May 2019 17:40:15 +0100 Subject: [PATCH 2/2] Added Support for serviceAccount --- elasticsearch/templates/statefulset.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/elasticsearch/templates/statefulset.yaml b/elasticsearch/templates/statefulset.yaml index 286426197..fcefaf98f 100644 --- a/elasticsearch/templates/statefulset.yaml +++ b/elasticsearch/templates/statefulset.yaml @@ -45,6 +45,9 @@ spec: configchecksum: {{ include (print .Template.BasePath "/configmap.yaml") . | sha256sum | trunc 63 }} {{- end }} spec: + {{- if .Values.serviceAccount }} + serviceAccount: {{ .Values.serviceAccount }} + {{- end }} securityContext: fsGroup: {{ .Values.fsGroup }} {{- with .Values.tolerations }}