From e1e30f6c189cd266e96309eeec44caface6f7b66 Mon Sep 17 00:00:00 2001 From: Chris Boot Date: Fri, 4 Jan 2019 07:55:34 +0000 Subject: [PATCH] Fix CronJob schedule for in webhook chart The current schedule (* * */24 * *) effectively causes the CronJob to run on the 24th of every month only, and on the 24th it runs every single minute (1440 times). The itention was to have it run daily, but I suspect that running it weekly should be plenty good enough. This fixes helm/charts#8077. Signed-off-by: Chris Boot --- deploy/chart/webhook/templates/ca-sync.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/chart/webhook/templates/ca-sync.yaml b/deploy/chart/webhook/templates/ca-sync.yaml index 149cad9ec..91cc91072 100644 --- a/deploy/chart/webhook/templates/ca-sync.yaml +++ b/deploy/chart/webhook/templates/ca-sync.yaml @@ -1,4 +1,4 @@ -## This file contains a CronJob that runs every 24h to automatically update the +## This file contains a CronJob that runs every week to automatically update the ## caBundle set on the APIService and ValidatingWebhookConfiguration resource. ## This allows us to store the CA bundle in a Secret resource which is ## generated by cert-manager's 'selfsigned' Issuer. @@ -13,7 +13,7 @@ metadata: release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: - schedule: "* * */24 * *" + schedule: "@weekly" jobTemplate: spec: template: