Skip to content

Commit

Permalink
Disable jobs cleanup cronjob if gitOps is disabled (#3129)
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 Dec 9, 2024
1 parent e01b546 commit fbab4a9
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 fbab4a9

Please sign in to comment.