mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[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:
committed by
Kubernetes Prow Robot
parent
5f013de26c
commit
2c5433d141
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user