Skip to content

Commit

Permalink
feat(registry-scanner): propagate schedule as env var
Browse files Browse the repository at this point in the history
  • Loading branch information
fedemengo committed Dec 5, 2023
1 parent 2ea7e73 commit 11dbb0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/registry-scanner/templates/_job.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
1 change: 1 addition & 0 deletions charts/registry-scanner/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 11dbb0a

Please sign in to comment.