Skip to content

Commit

Permalink
add ttlSecondsAfterFinished
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyblasczyk committed Jan 10, 2025
1 parent 03ee222 commit 05c9efd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions charts/operator-wandb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,7 @@ settingsMigrationHook:
kind: Job
jobs:
smh:
ttlSecondsAfterFinished: 3600
annotations:
"helm.sh/hook": pre-install
"helm.sh/hook-delete-policy": before-hook-creation
Expand Down
5 changes: 4 additions & 1 deletion charts/wandb-base/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- with $job.ttlSecondsAfterFinished }}
ttlSecondsAfterFinished: {{ . }}
{{- end }}
template:
metadata:
{{- with $job.podAnnotations }}
Expand Down Expand Up @@ -54,4 +57,4 @@ spec:
{{- end }}
*/}}
---
{{- end }}
{{- end }}
1 change: 1 addition & 0 deletions charts/wandb-base/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ containers: {}

jobs: {}
# example:
# ttlSecondsAfterFinished: 100
# annotations:
# "helm.sh/hook": post-install
# containers:
Expand Down

0 comments on commit 05c9efd

Please sign in to comment.