From 63d31a727acdd0f543ae9d5e7b74a9d5468ce4fe Mon Sep 17 00:00:00 2001 From: Nobi Date: Tue, 6 Dec 2022 10:54:15 +0700 Subject: [PATCH] Disable xpack.security.enabled if is not enabled Signed-off-by: Nobi --- elasticsearch/templates/statefulset.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/elasticsearch/templates/statefulset.yaml b/elasticsearch/templates/statefulset.yaml index 64fd42330..f8ede77db 100644 --- a/elasticsearch/templates/statefulset.yaml +++ b/elasticsearch/templates/statefulset.yaml @@ -361,6 +361,9 @@ spec: value: "/usr/share/elasticsearch/config/certs/tls.crt" - name: xpack.security.http.ssl.certificate_authorities value: "/usr/share/elasticsearch/config/certs/ca.crt" + {{- else }} + - name: xpack.security.enabled + value: "false" {{- end }} {{- if .Values.extraEnvs }} {{ toYaml .Values.extraEnvs | indent 10 }}