mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-12-15 20:37:39 +00:00
refactor: add delete options for Delete method in storage interface
This commit is contained in:
@@ -147,7 +147,7 @@ type FailDeletionStorage struct {
|
||||
Called *bool
|
||||
}
|
||||
|
||||
func (f FailDeletionStorage) Delete(_ context.Context, key string, _ runtime.Object, _ *apiserverstorage.Preconditions, _ apiserverstorage.ValidateObjectFunc, _ runtime.Object) error {
|
||||
func (f FailDeletionStorage) Delete(_ context.Context, key string, _ runtime.Object, _ *apiserverstorage.Preconditions, _ apiserverstorage.ValidateObjectFunc, _ runtime.Object, _ apiserverstorage.DeleteOptions) error {
|
||||
*f.Called = true
|
||||
return apiserverstorage.NewKeyNotFoundError(key, 0)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user