Skip to content

Commit

Permalink
Disable jobs cleanup cronjob if gitOps is disabled
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
weyfonk authored and thardeck committed Dec 6, 2024
1 parent 318e144 commit 3295b1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charts/fleet/templates/job_cleanup_gitrepojobs.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.migrations.gitrepoJobsCleanup }}
{{- if and .Values.migrations.gitrepoJobsCleanup .Values.gitops.enabled }}
---
apiVersion: batch/v1
kind: CronJob
Expand Down

0 comments on commit 3295b1f

Please sign in to comment.