Skip to content
This repository was archived by the owner on May 16, 2023. It is now read-only.

Commit a6490b8

Browse files
committed
[elasticsearch] add value to disable tests
Signed-off-by: nflaig <[email protected]>
1 parent 0ff3a3c commit a6490b8

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

elasticsearch/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ support multiple versions with minimal changes.
177177
| `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` |
178178
| `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` |
179179
| `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][] |
180+
| `tests.enabled` | Enable creating test related resources when running `helm template` or `helm test` | `{}` |
180181

181182
### Deprecated
182183

elasticsearch/templates/test/test-elasticsearch-health.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
{{- if .Values.tests.enabled -}}
23
apiVersion: v1
34
kind: Pod
45
metadata:
@@ -24,3 +25,4 @@ spec:
2425
{{ toYaml .Values.imagePullSecrets | indent 4 }}
2526
{{- end }}
2627
restartPolicy: Never
28+
{{- end -}}

elasticsearch/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,9 @@ networkPolicy:
338338
# values:
339339
# - frontend
340340

341+
tests:
342+
enabled: true
343+
341344
# Deprecated
342345
# please use the above podSecurityContext.fsGroup instead
343346
fsGroup: ""

0 commit comments

Comments
 (0)