From cf4782cc16ec809346a6ba4fb1bfc865aca7b664 Mon Sep 17 00:00:00 2001 From: Thomas Decaux Date: Fri, 4 Mar 2022 17:51:46 +0100 Subject: [PATCH] [elasticsearch] add keystore container securityContext (#1494) fix #1195 , add a securityContext for the initContainer "keystore". The securityContext is the same than the main container. Co-authored-by: jmlrt <8582351+jmlrt@users.noreply.github.com> --- elasticsearch/templates/statefulset.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/elasticsearch/templates/statefulset.yaml b/elasticsearch/templates/statefulset.yaml index cbddbbb6f..863818f00 100644 --- a/elasticsearch/templates/statefulset.yaml +++ b/elasticsearch/templates/statefulset.yaml @@ -180,6 +180,8 @@ spec: {{- end }} {{ if .Values.keystore }} - name: keystore + securityContext: +{{ toYaml .Values.securityContext | indent 10 }} image: "{{ .Values.image }}:{{ .Values.imageTag }}" imagePullPolicy: "{{ .Values.imagePullPolicy }}" command: