fix the cronjob to take 0 as historylimit (#47)

* fix the cronjob to take 0 as historylimit

* update chart version
main
Annavar Satish 2023-07-31 14:36:29 +05:30 committed by GitHub
parent 1f82bacd9c
commit 2731eaaaf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 9 deletions

View File

@ -4,5 +4,5 @@ description: A Helm chart for deploying any custom applications, specifically po
maintainers: maintainers:
- name: improwised - name: improwised
type: application type: application
version: 1.2.6 version: 1.2.7
appVersion: 1.0.0 appVersion: 1.0.0

View File

@ -13,12 +13,8 @@ metadata:
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}
{{- end }} {{- end }}
spec: spec:
{{- with .successfulJobsHistoryLimit | default $.Values.cronJobTemplate.successfulJobsHistoryLimit }} successfulJobsHistoryLimit: {{ .successfulJobsHistoryLimit | default $.Values.cronJobTemplate.successfulJobsHistoryLimit | default 0 }}
successfulJobsHistoryLimit: {{ toYaml . }} failedJobsHistoryLimit: {{ .failedJobsHistoryLimit | default $.Values.cronJobTemplate.failedJobsHistoryLimit | default 0 }}
{{- end }}
{{- with .failedJobsHistoryLimit | default $.Values.cronJobTemplate.failedJobsHistoryLimit }}
failedJobsHistoryLimit: {{ toYaml . }}
{{- end }}
schedule: {{ .schedule | quote }} schedule: {{ .schedule | quote }}
suspend: {{ .suspend | default false }} suspend: {{ .suspend | default false }}
jobTemplate: jobTemplate:

View File

@ -232,8 +232,8 @@ cronJobTemplate:
# fsGroup: 1001 # fsGroup: 1001
# runAsGroup: 1001 # runAsGroup: 1001
# runAsUser: 1001 # runAsUser: 1001
successfulJobsHistoryLimit: 1 # successfulJobsHistoryLimit: 1
failedJobsHistoryLimit: 1 # failedJobsHistoryLimit: 1
cronJobs: cronJobs:
# - name: update-status # - name: update-status