[stable/traefik] cleanup storeconfig-job hook (#12188)

Adding helm hook delete policy so hook is deleted if successful or if running install again after a failure.

Signed-off-by: Todd Brown <mrbrownt@me.com>
This commit is contained in:
Todd Brown
2019-05-16 13:04:32 -07:00
committed by Kubernetes Prow Robot
parent 5f013de26c
commit 2c5433d141
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: traefik
version: 1.68.2
version: 1.68.3
appVersion: 1.7.9
description: A Traefik based Kubernetes ingress controller with Let's Encrypt support
keywords:
@@ -5,19 +5,20 @@ metadata:
name: "storeconfig-job-{{ .Release.Revision }}"
annotations:
"helm.sh/hook": post-install,post-upgrade
"helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation"
labels:
chart: {{ template "traefik.chart" . }}
app: {{ template "traefik.name" . }}
spec:
template:
metadata:
metadata:
name: "storeconfig-job-{{ .Release.Revision }}"
labels:
app: {{ template "traefik.name" . }}
chart: {{ template "traefik.chart" . }}
spec:
restartPolicy: Never
containers:
containers:
- name: storeconfig-job
image: "{{ .Values.image }}:{{ .Values.imageTag }}"
args: