Skip to content

Commit 62eb439

Browse files
authoredFeb 24, 2025··
chore: improve hydra custom migration jobs (#737)
1 parent aa23bd4 commit 62eb439

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed
 

‎helm/charts/hydra/templates/job-migrations-custom.yaml

+4-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{{- $migrationExtraEnv := ternary $job.extraEnv $.Values.job.extraEnv (not (empty $job.extraEnv)) -}}
55
{{- $resources := ternary $job.resources $.Values.job.resources (not (empty $job.resources)) -}}
66
{{- $annotations := merge $.Values.job.annotations (default dict $job.annotations) -}}
7-
{{- $labels := merge $.Values.job.labels (default dict $job.labels) -}}
7+
{{- $labels := merge $.Values.job.labels (default dict $job.labels) }}
88

99
---
1010
apiVersion: batch/v1
@@ -72,10 +72,10 @@ spec:
7272
{{- with $migrationExtraEnv }}
7373
{{- toYaml . | nindent 10 }}
7474
{{- end }}
75+
{{- if $.Values.job.lifecycle }}
7576
lifecycle:
76-
{{- if $.Values.job.lifecycle }}
77-
{{- tpl $.Values.job.lifecycle $ | nindent 10 }}
78-
{{- end }}
77+
{{- tpl $.Values.job.lifecycle $ | nindent 10 }}
78+
{{- end }}
7979
{{- with $.Values.deployment.securityContext }}
8080
securityContext:
8181
{{- toYaml . | nindent 10 }}
@@ -90,8 +90,6 @@ spec:
9090
readOnly: true
9191
{{- if $job.extraVolumeMounts }}
9292
{{- toYaml $job.extraVolumeMounts | nindent 12 }}
93-
{{- else if $.Values.deployment.extraVolumeMounts }}
94-
{{- toYaml $.Values.deployment.extraVolumeMounts | nindent 12 }}
9593
{{- end }}
9694
{{- if $.Values.job.extraContainers }}
9795
{{- tpl $.Values.job.extraContainers $ | nindent 6 }}

0 commit comments

Comments
 (0)
Please sign in to comment.