Skip to content

Commit

Permalink
Add migrations.clusterRegistrationCleanup option to helm
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Manno committed Aug 2, 2023
1 parent 556a02c commit a1ecf6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/fleet/templates/job_cleanup_clusterregistrtions.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.migrations.clusterRegistrationCleanup }}
---
apiVersion: batch/v1
kind: Job
Expand Down Expand Up @@ -88,3 +89,4 @@ spec:
nodeSelector: {{ include "linux-node-selector" . | nindent 8 }}
tolerations: {{ include "linux-node-tolerations" . | nindent 8 }}
backoffLimit: 1
{{- end }}
3 changes: 3 additions & 0 deletions charts/fleet/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,6 @@ propagateDebugSettingsToAgents: true
# hostPath:
# path: /tmp/pprof
# type: DirectoryOrCreate

migrations:
clusterRegistrationCleanup: true

0 comments on commit a1ecf6b

Please sign in to comment.