File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {{- $jobName := include "temporal.componentname" (list $ (printf "schema-%d-%d" $.Chart.Version $.Release.Revision | replace "." "-")) }}
12apiVersion : batch/v1
23kind : Job
34metadata :
4- name : {{ include "temporal.componentname" (list $ (printf "schema-%d" .Release.Revision | replace "." "-")) }}
5+ name : {{ $jobName }}
56 labels :
67 {{- include "temporal.resourceLabels" (list $ "database" "") | nindent 4 }}
78 {{- with $.Values.schema.jobAnnotations }}
@@ -10,10 +11,10 @@ metadata:
1011 {{- end }}
1112spec :
1213 backoffLimit : {{ $.Values.schema.backoffLimit }}
13- ttlSecondsAfterFinished : 86400
14+ ttlSecondsAfterFinished : {{ $.Values.schema.ttlSecondsAfterFinished }}
1415 template :
1516 metadata :
16- name : {{ include "temporal.componentname" (list $ (printf "schema-%d" .Release.Revision | replace "." "-")) }}
17+ name : {{ $jobName }}
1718 labels :
1819 {{- include "temporal.resourceLabels" (list $ "database" "") | nindent 8 }}
1920 {{- with $.Values.schema.podLabels }}
Original file line number Diff line number Diff line change @@ -196,3 +196,29 @@ tests:
196196 - equal :
197197 path : spec.template.metadata.labels.custom-pod-label
198198 value : ghi
199+ - it : sets backoffLimit and ttlSecondsAfterFinished on the job
200+ set :
201+ server :
202+ config :
203+ persistence :
204+ datastores :
205+ default :
206+ sql :
207+ pluginName : mysql8
208+ connectAddr : " temporal-persistence:3306"
209+ databaseName : temporal
210+ visibility :
211+ sql :
212+ pluginName : mysql8
213+ connectAddr : " temporal-visibility:3306"
214+ databaseName : temporal_visibility
215+ schema :
216+ backoffLimit : 5
217+ ttlSecondsAfterFinished : 3600
218+ asserts :
219+ - equal :
220+ path : spec.backoffLimit
221+ value : 5
222+ - equal :
223+ path : spec.ttlSecondsAfterFinished
224+ value : 3600
Original file line number Diff line number Diff line change 508508 podDisruptionBudget : {}
509509schema :
510510 backoffLimit : 100
511+ ttlSecondsAfterFinished : 86400
511512 jobAnnotations : {}
512513 podAnnotations : {}
513514 podLabels : {}
You can’t perform that action at this time.
0 commit comments