diff --git a/helm/charts/hydra/templates/janitor-cron-job.yaml b/helm/charts/hydra/templates/janitor-cron-job.yaml index 6ec57ad18..242138b44 100644 --- a/helm/charts/hydra/templates/janitor-cron-job.yaml +++ b/helm/charts/hydra/templates/janitor-cron-job.yaml @@ -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 }} diff --git a/helm/charts/hydra/values.yaml b/helm/charts/hydra/values.yaml index 61a5e1aa0..711b1191b 100644 --- a/helm/charts/hydra/values.yaml +++ b/helm/charts/hydra/values.yaml @@ -528,6 +528,8 @@ cronjob: janitor: # -- Configure how often the cron job is ran schedule: "0 */1 * * *" + # -- Configure a custom entrypoint, overriding the default value + customCommand: [] # -- Configure the arguments of the entrypoint, overriding the default value customArgs: []