diff --git a/os2mo/templates/integrations/external.yaml b/os2mo/templates/integrations/external.yaml index 4f8fed1..5e20708 100644 --- a/os2mo/templates/integrations/external.yaml +++ b/os2mo/templates/integrations/external.yaml @@ -6,6 +6,8 @@ apiVersion: batch/v1 kind: Job metadata: name: {{ .jobName | quote }} + annotations: + "helm.sh/hook": post-install,post-upgrade spec: template: spec: diff --git a/os2mo/templates/mo/init-job.yaml b/os2mo/templates/mo/init-job.yaml index 0e6c42b..771c431 100644 --- a/os2mo/templates/mo/init-job.yaml +++ b/os2mo/templates/mo/init-job.yaml @@ -14,7 +14,6 @@ metadata: {{- toYaml . | nindent 4 }} {{- end }} "helm.sh/hook": post-install,post-upgrade - "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded spec: template: metadata: