Skip to content

Commit

Permalink
[job] Update job (#16)
Browse files Browse the repository at this point in the history
* Update job

Signed-off-by: Simon Misencik <[email protected]>

* Update docs

Signed-off-by: Simon Misencik <[email protected]>

Signed-off-by: Simon Misencik <[email protected]>
  • Loading branch information
SimonMisencik authored Dec 7, 2022
1 parent 1a76483 commit afaa172
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions charts/job/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: job
version: 1.1.0
version: 2.0.0
description: A Helm chart for Kubernetes Job
keywords:
- job
Expand All @@ -15,4 +15,6 @@ appVersion: "1.0.0"
annotations:
artifacthub.io/changes: |
- kind: added
description: Add ttlSecondsAfterFinished specification option
description: Add option to add annotations
- kind: removed
description: Remove ttlSecondsAfterFinished option
5 changes: 4 additions & 1 deletion charts/job/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ metadata:
name: {{ include "job.fullname" . }}
labels:
{{- include "job.labels" . | nindent 4 }}
{{- with .Values.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
ttlSecondsAfterFinished: {{ .Values.ttlSecondsAfterFinished }}
template:
spec:
restartPolicy: {{ .Values.restartPolicy }}
Expand Down
3 changes: 1 addition & 2 deletions charts/job/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ image:
pullPolicy: IfNotPresent
tag: "latest"

ttlSecondsAfterFinished: 10
imagePullSecrets: []
restartPolicy: OnFailure
command: '["bash", "-c", "sleep 365d"]'

annotations: {}
extraInitContainers:

env:

0 comments on commit afaa172

Please sign in to comment.