From d15416a914c484fd5f6cd4bf1cb7ff03f8c38d79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20=C5=A0alata?= Date: Tue, 3 Aug 2021 10:03:21 +0200 Subject: [PATCH] Fix cronjob schedule to once a week at Sunday --- charts/imagepullsecret-injector/Chart.yaml | 2 +- .../templates/certificate-gen/cronjob-certificate-gen.yaml | 2 +- charts/imagepullsecret-injector/values.yaml | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) 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