Skip to content

Commit bd54a00

Browse files
author
Shi Wang
authored
fix(kong): http2 no cached connection was available error (#185)
* can't return error when not found
1 parent 15449ea commit bd54a00

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

pkg/provider/ipvsdr/ipvsdr.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,9 @@ func (f *ipvsdr) cleanup(lb *lbapi.LoadBalancer, deleteStatus bool) error {
290290

291291
ds, err := f.getDeploymentsForLoadBalancer(lb)
292292
if err != nil {
293-
return err
293+
if !errors.IsNotFound(err) {
294+
return err
295+
}
294296
}
295297

296298
policy := metav1.DeletePropagationForeground

pkg/proxy/nginx/nginx.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,9 @@ func (f *nginx) cleanup(lb *lbapi.LoadBalancer) error {
311311

312312
ds, err := f.getDeploymentsForLoadBalancer(lb)
313313
if err != nil {
314-
return err
314+
if !errors.IsNotFound(err) {
315+
return err
316+
}
315317
}
316318

317319
policy := metav1.DeletePropagationForeground

0 commit comments

Comments
 (0)