diff --git a/charts/imagepullsecret-injector/Chart.yaml b/charts/imagepullsecret-injector/Chart.yaml index de7c6eb..50deaa5 100644 --- a/charts/imagepullsecret-injector/Chart.yaml +++ b/charts/imagepullsecret-injector/Chart.yaml @@ -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 diff --git a/charts/imagepullsecret-injector/templates/certificate-gen/cronjob-certificate-gen.yaml b/charts/imagepullsecret-injector/templates/certificate-gen/cronjob-certificate-gen.yaml index c511c3e..1bf7ac1 100644 --- a/charts/imagepullsecret-injector/templates/certificate-gen/cronjob-certificate-gen.yaml +++ b/charts/imagepullsecret-injector/templates/certificate-gen/cronjob-certificate-gen.yaml @@ -5,7 +5,7 @@ metadata: labels: {{- include "imagepullsecret-injector.labels" . | nindent 4 }} spec: - schedule: '* * * * 0' + schedule: {{ .Values.certificateGenerator.cronJobSchedule }} jobTemplate: metadata: name: "{{ .Release.Name }}" diff --git a/charts/imagepullsecret-injector/values.yaml b/charts/imagepullsecret-injector/values.yaml index 305e35e..ccab098 100644 --- a/charts/imagepullsecret-injector/values.yaml +++ b/charts/imagepullsecret-injector/values.yaml @@ -24,3 +24,6 @@ imagepullsecretInjector: - kube-system - traefik - datadog + +certificateGenerator: + cronJobSchedule: '0 0 * * 0' # At 00:00 on Sunday \ No newline at end of file