mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-03 16:37:04 +02:00
feat(common)!: Release v3.0.0-beta1 (#278)
This commit is contained in:
parent
deafcf75a1
commit
b78483b0b8
88 changed files with 3697 additions and 1209 deletions
|
@ -15,6 +15,8 @@ within the common library.
|
|||
($jobObject.annotations | default dict)
|
||||
(include "bjw-s.common.lib.metadata.globalAnnotations" $rootContext | fromYaml)
|
||||
-}}
|
||||
|
||||
{{- $jobSettings := dig "job" dict $jobObject -}}
|
||||
---
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
|
@ -27,22 +29,20 @@ metadata:
|
|||
annotations: {{- toYaml . | nindent 4 -}}
|
||||
{{- end }}
|
||||
spec:
|
||||
{{- with $jobObject.job.suspend }}
|
||||
suspend: {{ ternary "true" "false" . }}
|
||||
{{- end }}
|
||||
{{- with $jobObject.job.ttlSecondsAfterFinished }}
|
||||
suspend: {{ default false $jobSettings.suspend }}
|
||||
{{- with $jobSettings.ttlSecondsAfterFinished }}
|
||||
ttlSecondsAfterFinished: {{ . }}
|
||||
{{- end }}
|
||||
{{- with $jobObject.job.parallelism }}
|
||||
{{- with $jobSettings.parallelism }}
|
||||
parallelism: {{ . }}
|
||||
{{- end }}
|
||||
{{- with $jobObject.job.completions }}
|
||||
{{- with $jobSettings.completions }}
|
||||
completions: {{ . }}
|
||||
{{- end }}
|
||||
{{- with $jobObject.job.completionMode }}
|
||||
{{- with $jobSettings.completionMode }}
|
||||
completionMode: {{ . }}
|
||||
{{- end }}
|
||||
backoffLimit: {{ $jobObject.job.backoffLimit }}
|
||||
backoffLimit: {{ default 6 $jobSettings.backoffLimit }}
|
||||
template:
|
||||
metadata:
|
||||
{{- with (include "bjw-s.common.lib.pod.metadata.annotations" (dict "rootContext" $rootContext "controllerObject" $jobObject)) }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue