Skip to content

Commit

Permalink
[elasticsearch] update test hook annotations (#911)
Browse files Browse the repository at this point in the history
This commit update Elasticsearch chart test hook annotations for Helm 3
and add a new annotation to automate test pod deletion when test is
successful.

Related to elastic/helm-charts#401 (comment)
  • Loading branch information
jmlrt committed Nov 18, 2020
1 parent e46ea17 commit 93c0980
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion elasticsearch/templates/test/test-elasticsearch-health.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ kind: Pod
metadata:
name: "{{ .Release.Name }}-{{ randAlpha 5 | lower }}-test"
annotations:
"helm.sh/hook": test-success
"helm.sh/hook": test
"helm.sh/hook-delete-policy": hook-succeeded
spec:
securityContext:
{{ toYaml .Values.podSecurityContext | indent 4 }}
Expand Down

0 comments on commit 93c0980

Please sign in to comment.