diff --git a/helm/charts/hydra/templates/janitor-cron-job.yaml b/helm/charts/hydra/templates/janitor-cron-job.yaml index 6ec57ad18d..242138b443 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 61a5e1aa04..b99cab9cff 100644 --- a/helm/charts/hydra/values.yaml +++ b/helm/charts/hydra/values.yaml @@ -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: []