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

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 #401 (comment)
  • Loading branch information
jmlrt committed Nov 18, 2020
1 parent 387c9f9 commit e5c7cff
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 e5c7cff

Please sign in to comment.