Skip to content

Commit

Permalink
fix the cronjob to take 0 as historylimit (#47)
Browse files Browse the repository at this point in the history
* fix the cronjob to take 0 as historylimit

* update chart version
  • Loading branch information
Annavar-satish authored Jul 31, 2023
1 parent 1f82bac commit 2731eaa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion charts/polymorphic-app/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ description: A Helm chart for deploying any custom applications, specifically po
maintainers:
- name: improwised
type: application
version: 1.2.6
version: 1.2.7
appVersion: 1.0.0
8 changes: 2 additions & 6 deletions charts/polymorphic-app/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,8 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- with .successfulJobsHistoryLimit | default $.Values.cronJobTemplate.successfulJobsHistoryLimit }}
successfulJobsHistoryLimit: {{ toYaml . }}
{{- end }}
{{- with .failedJobsHistoryLimit | default $.Values.cronJobTemplate.failedJobsHistoryLimit }}
failedJobsHistoryLimit: {{ toYaml . }}
{{- end }}
successfulJobsHistoryLimit: {{ .successfulJobsHistoryLimit | default $.Values.cronJobTemplate.successfulJobsHistoryLimit | default 0 }}
failedJobsHistoryLimit: {{ .failedJobsHistoryLimit | default $.Values.cronJobTemplate.failedJobsHistoryLimit | default 0 }}
schedule: {{ .schedule | quote }}
suspend: {{ .suspend | default false }}
jobTemplate:
Expand Down
4 changes: 2 additions & 2 deletions charts/polymorphic-app/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ cronJobTemplate:
# fsGroup: 1001
# runAsGroup: 1001
# runAsUser: 1001
successfulJobsHistoryLimit: 1
failedJobsHistoryLimit: 1
# successfulJobsHistoryLimit: 1
# failedJobsHistoryLimit: 1

cronJobs:
# - name: update-status
Expand Down

0 comments on commit 2731eaa

Please sign in to comment.