From c840c9dd1806dce44c3e358697f32c5c85e87daa Mon Sep 17 00:00:00 2001 From: nflaig Date: Thu, 18 Mar 2021 21:42:58 +0100 Subject: [PATCH] [elasticsearch] add value to disable tests --- elasticsearch/templates/test/test-elasticsearch-health.yaml | 2 ++ elasticsearch/values.yaml | 3 +++ 2 files changed, 5 insertions(+) diff --git a/elasticsearch/templates/test/test-elasticsearch-health.yaml b/elasticsearch/templates/test/test-elasticsearch-health.yaml index dd5eaa043..567ff0559 100644 --- a/elasticsearch/templates/test/test-elasticsearch-health.yaml +++ b/elasticsearch/templates/test/test-elasticsearch-health.yaml @@ -1,4 +1,5 @@ --- +{{- if .Values.tests.enabled -}} apiVersion: v1 kind: Pod metadata: @@ -24,3 +25,4 @@ spec: {{ toYaml .Values.imagePullSecrets | indent 4 }} {{- end }} restartPolicy: Never +{{- end -}} \ No newline at end of file diff --git a/elasticsearch/values.yaml b/elasticsearch/values.yaml index 9ef799b83..2e9ee99cf 100755 --- a/elasticsearch/values.yaml +++ b/elasticsearch/values.yaml @@ -338,6 +338,9 @@ networkPolicy: # values: # - frontend +tests: + enabled: true + # Deprecated # please use the above podSecurityContext.fsGroup instead fsGroup: ""