Fix cronjob schedule to once a week at Sunday

This commit is contained in:
Martin Šalata
2021-08-03 10:03:21 +02:00
parent e0fe690e4e
commit d15416a914
3 changed files with 5 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.0.23
version: 0.0.24
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to

View File

@@ -5,7 +5,7 @@ metadata:
labels:
{{- include "imagepullsecret-injector.labels" . | nindent 4 }}
spec:
schedule: '* * * * 0'
schedule: {{ .Values.certificateGenerator.cronJobSchedule }}
jobTemplate:
metadata:
name: "{{ .Release.Name }}"

View File

@@ -24,3 +24,6 @@ imagepullsecretInjector:
- kube-system
- traefik
- datadog
certificateGenerator:
cronJobSchedule: '0 0 * * 0' # At 00:00 on Sunday