-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Garbage collection dry run #2063
Garbage collection dry run #2063
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great idea, thanks for putting your time into this ✋ (high five!)
I made a few suggestions, see what you think. If you don't think you'll have capacity to spend more time on this PR, no worries, just let us know :-)
Unfortunately I can’t run the e2e tests because I miss the app kind. Is that an alias? |
@jan-schumacher kind is Kubernetes in Docker, it should also work with minikube (after rebasing on master) by running |
@jan-schumacher You will be able to run them locally if you rebase on master (thanks to #2063 ) by running Regardless, the current error is:
|
@hiddeco
Should I rather do it like this?
|
@jan-schumacher please take a look at the Helm documentation about operators https://helm.sh/docs/chart_template_guide/#operators-are-functions |
I see, thanks mate ;) not this is what i call syntactical candy. |
@jan-schumacher this is shaping up well, can you smash your commits together into one? |
9f53771
to
e3a28e4
Compare
Before this change there was no ability to run the garbage collection process in a dry run, without touching any resources. After this change you can enable the option sync-garbage-collection-dry to only log what would be garbage collected, rather than deleting.
e3a28e4
to
cbbe90c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, thanks @jan-schumacher 🥇
I added a new
syncGarbageCollection.dry
option for helm chart and deployment. With this option activated it is irrelevant howsyncGarbageCollection.enabled
is set, the garbage collection will run in a trace mode. Only logs appear in the console but no resources are touched.I created a Test for this behaviour in the style of the existing tests.
Fixes #1990