Skip to content

Commit

Permalink
fluxcd#1990 Garbage collection dry run
Browse files Browse the repository at this point in the history
- added dry-run-garbage-collection arg
- added .Values.syncGarbageCollection.dry
  • Loading branch information
Jan Schumacher committed May 18, 2019
1 parent 25e087f commit 0b13f54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chart/flux/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,10 @@ spec:
- --connect=wss://cloud.weave.works/api/flux
- --token={{ .Values.token }}
{{- end }}
{{- if .Values.syncGarbageCollection.enabled }}
{{- if .Values.syncGarbageCollection.enabled and not .Values.syncGarbageCollection.dry}}
- --sync-garbage-collection={{ .Values.syncGarbageCollection.enabled }}
{{- else if .Values.syncGarbageCollection.dry }}
- --dry-run-garbage-collection={{ .Values.syncGarbageCollection.dry }}
{{- end }}
{{- if .Values.additionalArgs }}
{{ toYaml .Values.additionalArgs | indent 10 }}
Expand Down
1 change: 1 addition & 0 deletions chart/flux/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ prometheus:

syncGarbageCollection:
enabled: false
dry: false

# Add your own init container or uncomment and modify the given example.
initContainers: {}
Expand Down

0 comments on commit 0b13f54

Please sign in to comment.