treat db migration job a helm hook
@@ -4,6 +4,9 @@ kind: Job
metadata:
name: infrabox-db-migration
namespace: {{ template "system_namespace" . }}
+ annotations:
+ "helm.sh/hook": "pre-install,pre-upgrade"
+ "helm.sh/hook-delete-policy": "before-hook-creation"
spec:
template:
metadata:
