From 17b833e8282502bc2e112600c62c00581d334365 Mon Sep 17 00:00:00 2001 From: Michele Sorcinelli Date: Thu, 16 Apr 2020 13:15:15 +0100 Subject: [PATCH] [elasticsearch] Set securityContext for test pod --- elasticsearch/templates/test/test-elasticsearch-health.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/elasticsearch/templates/test/test-elasticsearch-health.yaml b/elasticsearch/templates/test/test-elasticsearch-health.yaml index 8570eb1d9..4b15e0cd4 100644 --- a/elasticsearch/templates/test/test-elasticsearch-health.yaml +++ b/elasticsearch/templates/test/test-elasticsearch-health.yaml @@ -6,6 +6,8 @@ metadata: annotations: "helm.sh/hook": test-success spec: + securityContext: +{{ toYaml .Values.podSecurityContext | indent 4 }} containers: - name: "{{ .Release.Name }}-{{ randAlpha 5 | lower }}-test" image: "{{ .Values.image }}:{{ .Values.imageTag }}"