mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-11-02 14:51:58 +00:00
Add suggestion to storage interface Delete method
This commit is contained in:
@@ -159,7 +159,7 @@ type FailDeletionStorage struct {
|
||||
Called *bool
|
||||
}
|
||||
|
||||
func (f FailDeletionStorage) Delete(ctx context.Context, key string, out runtime.Object, precondition *apiserverstorage.Preconditions, _ apiserverstorage.ValidateObjectFunc) error {
|
||||
func (f FailDeletionStorage) Delete(_ context.Context, key string, _ runtime.Object, _ *apiserverstorage.Preconditions, _ apiserverstorage.ValidateObjectFunc, _ runtime.Object) error {
|
||||
*f.Called = true
|
||||
return apiserverstorage.NewKeyNotFoundError(key, 0)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user