[IMPROVEMENT] Reject the last replica deletion if its volume.spec.deletionTimestamp is not set #7372
Labels
area/resilience
System or volume resilience
area/stability
System or volume stability
area/webook
Kubernetes validation and mutating webhooks
backport/1.4.5
backport/1.5.4
kind/improvement
Request for improvement of existing function
priority/0
Must be fixed in this release (managed by PO)
require/auto-e2e-test
Require adding/updating auto e2e test cases if they can be automated
require/backport
Require backport. Only used when the specific versions to backport have not been definied.
require/doc
Require updating the longhorn.io documentation
Milestone
Is your improvement request related to a feature? Please describe (馃憤 if you like this request)
To prevent accidentally from deleting the last replica regardless of it is healthy or faulty, reject the last replica deletion if
spec.deletionTimestamp
of its volume is not set in the validating webhook.Describe the solution you'd like
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: