File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ apiVersion: v2
33name : cronjobs
44description : A generic helm cronjob chart for kubernetes
55type : application
6- version : 1.2.1
6+ version : 1.3.0
77appVersion : latest
88home : https://github.com/klicktipp/helm-charts
99keywords :
Original file line number Diff line number Diff line change 8080 securityContext :
8181 {{- toYaml ($job.podSecurityContext | default $.Values.podSecurityContext) | nindent 12 }}
8282 containers :
83- - name : job
83+ - name : {{ .containerName | default $.Values.commonContainerName }}
8484 securityContext :
8585 {{- toYaml ($job.securityContext | default $.Values.securityContext) | nindent 16 }}
8686 image : " {{ $job.image.repository }}:{{ $job.image.tag | default $.Chart.AppVersion }}"
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ env: {}
4848
4949jobs : {}
5050# test:
51+ # containerName: cronjob
5152# schedule: "*/5 * * * *"
5253# command:
5354# - /bin/sh
@@ -104,6 +105,10 @@ commonAnnotations: {}
104105# Common labels to add to all resources. Evaluated as a template
105106commonLabels : {}
106107
108+ # Given name given to the job container inside the Pod.
109+ # Can be oveeriden with .jobs.KEY.containerName
110+ commonContainerName : cronjob
111+
107112podSecurityContext : {}
108113 # fsGroup: 2000
109114
You can’t perform that action at this time.
0 commit comments