diff --git a/charts/registry-scanner/templates/_job.tpl b/charts/registry-scanner/templates/_job.tpl index 92cde2b68..157b305a8 100644 --- a/charts/registry-scanner/templates/_job.tpl +++ b/charts/registry-scanner/templates/_job.tpl @@ -128,6 +128,8 @@ - name: REGISTRYSCANNER_PROFILING_ENABLED value: /profiling {{- end }} + - name: REGISTRYSCANNER_CRONJOB_SCHEDULE + value: {{ .Values.cronjob.schedule | quote }} {{- if .Values.extraEnvVars }} {{- toYaml .Values.extraEnvVars | nindent 10 }} {{- end }} diff --git a/charts/registry-scanner/templates/configmap.yaml b/charts/registry-scanner/templates/configmap.yaml index 11d12a82f..7c927263f 100644 --- a/charts/registry-scanner/templates/configmap.yaml +++ b/charts/registry-scanner/templates/configmap.yaml @@ -65,6 +65,7 @@ data: limits: memory: {{ .Values.config.scan.jobs.resources.limits.memory }} temporaryVolumeSizeLimit: {{ .Values.config.scan.jobs.temporaryVolumeSizeLimit }} + scheduleExpression: {{ .Values.cronjob.schedule | quote }} {{- if .Values.config.scan.inlineScanImage }} inlineScanImage: {{ .Values.config.scan.inlineScanImage }} {{- end }}