Skip to content

Commit

Permalink
fix(kong): http2 no cached connection was available error (#185)
Browse files Browse the repository at this point in the history
* can't return error when not found
  • Loading branch information
Shi Wang authored Jul 13, 2020
1 parent 15449ea commit bd54a00
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pkg/provider/ipvsdr/ipvsdr.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,9 @@ func (f *ipvsdr) cleanup(lb *lbapi.LoadBalancer, deleteStatus bool) error {

ds, err := f.getDeploymentsForLoadBalancer(lb)
if err != nil {
return err
if !errors.IsNotFound(err) {
return err
}
}

policy := metav1.DeletePropagationForeground
Expand Down
4 changes: 3 additions & 1 deletion pkg/proxy/nginx/nginx.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,9 @@ func (f *nginx) cleanup(lb *lbapi.LoadBalancer) error {

ds, err := f.getDeploymentsForLoadBalancer(lb)
if err != nil {
return err
if !errors.IsNotFound(err) {
return err
}
}

policy := metav1.DeletePropagationForeground
Expand Down

0 comments on commit bd54a00

Please sign in to comment.