Skip to content

Commit

Permalink
update centralize subnet gatewayNode until gw is ready (#1814)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongzhen-ma committed Aug 16, 2022
1 parent d44de3e commit e4d5321
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/controller/subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -1080,8 +1080,10 @@ func (c *Controller) reconcileOvnRoute(subnet *kubeovnv1.Subnet) error {
if err != nil {
return err
}
_, err = c.config.KubeOvnClient.KubeovnV1().Subnets().Patch(context.Background(), subnet.Name, types.MergePatchType, bytes, metav1.PatchOptions{}, "status")
return err
if _, err = c.config.KubeOvnClient.KubeovnV1().Subnets().Patch(context.Background(), subnet.Name, types.MergePatchType, bytes, metav1.PatchOptions{}, "status"); err != nil {
klog.Errorf("failed to patch subnet %s NoReadyGateway status: %v", subnet.Name, err)
}
return fmt.Errorf("all subnet %s gws are not ready", subnet.Name)
}

nextHop := getNextHopByTunnelIP(nodeTunlIPAddr)
Expand Down

0 comments on commit e4d5321

Please sign in to comment.