[stable/sentry] delete hooks on success or before running again (#12144)

This will cleanup the db init and user create job if they succeed. It will also delete them if the install fails and you run install again, that way new db init and user create jobs will run again.

Signed-off-by: Todd Brown <mrbrownt@me.com>
This commit is contained in:
Todd Brown
2019-04-22 06:51:44 -07:00
committed by Kubernetes Prow Robot
parent b25b00903b
commit 0afeb26601
3 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
description: Sentry is a cross-platform crash reporting and aggregation platform.
name: sentry
version: 1.3.3
version: 1.3.4
appVersion: 9.0
keywords:
- debugging
@@ -12,6 +12,7 @@ metadata:
# This is what defines this resource as a hook. Without this line, the
# job is considered part of the release.
"helm.sh/hook": post-install
"helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation"
"helm.sh/hook-weight": "-5"
spec:
template:
@@ -12,6 +12,7 @@ metadata:
# This is what defines this resource as a hook. Without this line, the
# job is considered part of the release.
"helm.sh/hook": post-install
"helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation"
"helm.sh/hook-weight": "5"
spec:
template: