Skip to content

Commit 9fe41b8

Browse files
authored
test: allow kwok provider deletion to terminate instance (#1996)
Signed-off-by: Max Cao <[email protected]>
1 parent e20af95 commit 9fe41b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kwok/cloudprovider/cloudprovider.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func (c CloudProvider) Delete(ctx context.Context, nodeClaim *v1.NodeClaim) erro
7070
}
7171
return fmt.Errorf("deleting node, %w", err)
7272
}
73-
return nil
73+
return cloudprovider.NewNodeClaimNotFoundError(fmt.Errorf("instance terminated"))
7474
}
7575

7676
func (c CloudProvider) Get(ctx context.Context, providerID string) (*v1.NodeClaim, error) {

0 commit comments

Comments
 (0)