From 3a87fe857490b60f64af4327ade0d78137c64cba 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 Signed-off-by: nflaig --- elasticsearch/README.md | 1 + elasticsearch/templates/test/test-elasticsearch-health.yaml | 2 ++ elasticsearch/values.yaml | 3 +++ 3 files changed, 6 insertions(+) diff --git a/elasticsearch/README.md b/elasticsearch/README.md index 549f1c959..3342daf6c 100644 --- a/elasticsearch/README.md +++ b/elasticsearch/README.md @@ -177,6 +177,7 @@ support multiple versions with minimal changes. | `transportPort` | The transport port that Kubernetes will use for the service. If you change this you will also need to set [transport port configuration][] in `extraEnvs` | `9300` | | `updateStrategy` | The [updateStrategy][] for the StatefulSet. By default Kubernetes will wait for the cluster to be green after upgrading each pod. Setting this to `OnDelete` will allow you to manually delete each pod during upgrades | `RollingUpdate` | | `volumeClaimTemplate` | Configuration for the [volumeClaimTemplate for StatefulSets][]. You will want to adjust the storage (default `30Gi` ) and the `storageClassName` if you are using a different storage class | see [values.yaml][] | +| `tests.enabled` | Enable creating test related resources when running `helm template` or `helm test` | `true` | ### Deprecated diff --git a/elasticsearch/templates/test/test-elasticsearch-health.yaml b/elasticsearch/templates/test/test-elasticsearch-health.yaml index dd5eaa043..60fa9df6f 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 -}} 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: ""