-
Notifications
You must be signed in to change notification settings - Fork 686
Open
Description
I have accidentally misconfigured FluxInstance to point to an empty directory, and Flux gleefully proceeded to delete everything it was managing before :)
It would be nice to have some basic configurable sanity checks to require manual confirmation in a situation where all or almost all of the inventory is about to be deleted.
Additional considerations:
- It should probably apply only when the managing resource itself is not getting deleted. E.g., if the user deletes
KustomizationorHelmRelease- they probably intended for the relevant resources to be deleted too. OTOH, ifKustomizationsuddenly evaluates to just 1 object instead of 100 - that is very likely to be a mistake. - There are obviously cases when the user actually intends to delete a lot of things at once, and an extra step of manual approval could be annoying. To improve UX in that situation it could be useful to signal upfront that the decrease in object count is expected (e.g., in a commit message or OCI container annotation)
Metadata
Metadata
Assignees
Labels
No labels