Skip to content

Commit

Permalink
adding custom command field in cronjob
Browse files Browse the repository at this point in the history
  • Loading branch information
devsha2 committed Aug 23, 2024
1 parent c5dd76e commit 6de3f7e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions helm/charts/hydra/templates/janitor-cron-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ spec:
securityContext:
{{- toYaml . | nindent 16 }}
{{- end }}
{{- if .Values.cronjob.janitor.customCommand }}
command: {{- toYaml .Values.cronjob.janitor.customCommand | nindent 14 }}
{{- else }}
command: ["hydra"]
{{- end }}
{{- if .Values.cronjob.janitor.customArgs }}
args: {{- toYaml .Values.cronjob.janitor.customArgs | nindent 14 }}
{{- else }}
Expand Down
2 changes: 2 additions & 0 deletions helm/charts/hydra/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,8 @@ cronjob:
# -- Configure how often the cron job is ran
schedule: "0 */1 * * *"

customCommand: []

# -- Configure the arguments of the entrypoint, overriding the default value
customArgs: []

Expand Down

0 comments on commit 6de3f7e

Please sign in to comment.