client-go dynamic client: update DeleteOptions callers

This commit is contained in:
Jordan Liggitt
2020-03-06 10:20:40 -05:00
parent 161b7513f7
commit b19dc3a474
23 changed files with 50 additions and 51 deletions

View File

@@ -105,7 +105,7 @@ func TestDynamicClient(t *testing.T) {
}
// delete the pod dynamically
err = dynamicClient.Resource(resource).Namespace("default").Delete(actual.Name, nil)
err = dynamicClient.Resource(resource).Namespace("default").Delete(actual.Name, metav1.DeleteOptions{})
if err != nil {
t.Fatalf("unexpected error when deleting pod: %v", err)
}