Skip to content

Commit

Permalink
πŸ›(jenny) fix job creation
Browse files Browse the repository at this point in the history
Fix when create a list of job in the same template and
ensure to run the job after the install to avoid missing
resource.
  • Loading branch information
claudusd committed Mar 20, 2024
1 parent bf2ee27 commit a85348b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jenny/templates/jobs.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- range .Values.django.jobs }}
---
apiVersion: batch/v1
kind: Job
metadata:
Expand All @@ -13,7 +14,7 @@ metadata:
{{- if $.Values.commonAnnotations }}
{{- toYaml $.Values.commonAnnotations | nindent 4 }}
{{- end }}
"helm.sh/hook": pre-upgrade, pre-install
"helm.sh/hook": post-upgrade,post-install
"helm.sh/hook-weight": "0"
spec:
template:
Expand Down

0 comments on commit a85348b

Please sign in to comment.