From 0afeb26601ef17985d196e0dad257976291a16fa Mon Sep 17 00:00:00 2001 From: Todd Brown Date: Mon, 22 Apr 2019 08:51:44 -0500 Subject: [PATCH] [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 --- stable/sentry/Chart.yaml | 2 +- stable/sentry/templates/hooks/db-init.job.yaml | 1 + stable/sentry/templates/hooks/user-create.job.yaml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/stable/sentry/Chart.yaml b/stable/sentry/Chart.yaml index e1a205f63c..6d4ef6dca9 100644 --- a/stable/sentry/Chart.yaml +++ b/stable/sentry/Chart.yaml @@ -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 diff --git a/stable/sentry/templates/hooks/db-init.job.yaml b/stable/sentry/templates/hooks/db-init.job.yaml index 05f6ac53c4..85e219287b 100644 --- a/stable/sentry/templates/hooks/db-init.job.yaml +++ b/stable/sentry/templates/hooks/db-init.job.yaml @@ -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: diff --git a/stable/sentry/templates/hooks/user-create.job.yaml b/stable/sentry/templates/hooks/user-create.job.yaml index bd596fe276..f149d60f77 100644 --- a/stable/sentry/templates/hooks/user-create.job.yaml +++ b/stable/sentry/templates/hooks/user-create.job.yaml @@ -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: