Skip to content

Commit b55704b

Browse files
committed
added support for jobLabels and jobAnnotations
1 parent 1e4c209 commit b55704b

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

scripts/devtron-reference-helm-charts/cronjob-chart_1-6-0/templates/job.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ metadata:
99
release: {{ $.Release.Name }}
1010
releaseVersion: {{ $.Values.releaseVersion | quote }}
1111
pipelineName: {{ .Values.pipelineName }}
12+
{{- if .Values.jobLabels }}
13+
{{ toYaml .Values.jobLabels | indent 4 }}
14+
{{- end }}
15+
{{- if .Values.jobAnnotations }}
16+
annotations:
17+
{{ toYaml .Values.jobAnnotations | indent 4 }}
18+
{{- end }}
19+
1220
spec:
1321
{{- include "job-template-spec" . | indent 2 }}
1422
{{ end }}

scripts/devtron-reference-helm-charts/cronjob-chart_1-6-0/test_values.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ cronjobConfigs:
2222
cronJobAnnotations:
2323
example.com/dummy: "true"
2424
cronJobLabels:
25-
example.com/dummy: "true"
25+
example.com/dummy: "true"
26+
jobAnnotations:
27+
example.com/dummy: "true"
28+
jobLabels:
29+
example.com/dummy: "true"
2630
LivenessProbe:
2731
Path: "/"
2832
command: []

0 commit comments

Comments
 (0)