From 3295b1f59bacf28b74f4fbde7e3d8e20a77032fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Corentin=20N=C3=A9au?= Date: Thu, 5 Dec 2024 16:17:28 +0100 Subject: [PATCH] Disable jobs cleanup cronjob if gitOps is disabled This skips the cronjob responsible for cleaning up `fleet apply` Kubernetes jobs when no such jobs have run because Fleet has been installed with gitOps disabled. --- charts/fleet/templates/job_cleanup_gitrepojobs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/fleet/templates/job_cleanup_gitrepojobs.yaml b/charts/fleet/templates/job_cleanup_gitrepojobs.yaml index 0c58024476..c7233630d9 100644 --- a/charts/fleet/templates/job_cleanup_gitrepojobs.yaml +++ b/charts/fleet/templates/job_cleanup_gitrepojobs.yaml @@ -1,4 +1,4 @@ -{{- if .Values.migrations.gitrepoJobsCleanup }} +{{- if and .Values.migrations.gitrepoJobsCleanup .Values.gitops.enabled }} --- apiVersion: batch/v1 kind: CronJob