diff --git a/chart/flux/templates/deployment.yaml b/chart/flux/templates/deployment.yaml index b08e77803d..6353edc641 100644 --- a/chart/flux/templates/deployment.yaml +++ b/chart/flux/templates/deployment.yaml @@ -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 }} diff --git a/chart/flux/values.yaml b/chart/flux/values.yaml index 9987301a2b..f1d4e40f2f 100644 --- a/chart/flux/values.yaml +++ b/chart/flux/values.yaml @@ -231,6 +231,7 @@ prometheus: syncGarbageCollection: enabled: false + dry: false # Add your own init container or uncomment and modify the given example. initContainers: {}