Skip to content

Commit 18f3e70

Browse files
authored
feat: add chart hooks to migration-job template for app chart (#36)
* chore: add .idea folder to .gitignore * feat: add chart hooks to migration-job template * feat: bump up app chart version * feat: change hook delete policy for migration job
1 parent 89977a3 commit 18f3e70

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@
1313

1414
# Dependency directories (remove the comment below to include it)
1515
# vendor/
16+
.idea/

stable/app/templates/migration-job.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ spec:
1010
metadata:
1111
{{- with .Values.podAnnotations }}
1212
annotations:
13-
{{- toYaml . | nindent 8 }}
13+
# This is what defines this resource as a hook. Without this line, the
14+
# job is considered part of the release.
15+
"helm.sh/hook": pre-install
16+
"helm.sh/hook-weight": "-5"
17+
"helm.sh/hook-delete-policy": hook-succeeded,hook-failed
18+
{{- toYaml . | nindent 8 }}
1419
{{- end }}
1520
labels:
1621
{{- include "app.selectorLabels" . | nindent 8 }}

0 commit comments

Comments
 (0)