feat(common)!: Release v3.0.0-beta1 (#278)

This commit is contained in:
Bernd Schorgers 2024-03-07 19:53:41 +01:00 committed by GitHub
parent deafcf75a1
commit b78483b0b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
88 changed files with 3697 additions and 1209 deletions

View file

@ -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)) }}