Skip to content

Commit 1e6c58c

Browse files
authored
Add extra spec options to Job specs (#86)
* Add extra spec options to Job specs * Bump chart version * Improve naming
1 parent a6d8ab8 commit 1e6c58c

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

standard-app/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: standard-app
33
description: A Helm chart library by Cloudkite
44
type: application
5-
version: 1.3.11
5+
version: 1.4.0
66
maintainters:
77
88
name: cloudkite

standard-app/example.values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,8 @@ secrets:
511511

512512
jobs:
513513
jobexample-1:
514+
specOptions:
515+
ttlSecondsAfterFinished: 100 # Optional, time to live for the job
514516
annotations:
515517
annotation1: value1
516518
labels:

standard-app/templates/workloads/job.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ metadata:
2323
{{- toYaml . | nindent 4 }}
2424
{{- end }}
2525
spec:
26+
{{- if $jobConfig.specOptions }}
27+
{{- toYaml $jobConfig.specOptions | nindent 2 }}
28+
{{- end }}
2629
template:
2730
metadata:
2831
labels:

0 commit comments

Comments
 (0)