Skip to content

Commit

Permalink
delete overlapped var subnet
Browse files Browse the repository at this point in the history
  • Loading branch information
hongzhen-ma committed Jul 19, 2021
1 parent 1dfcf6d commit e48c985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ func (c *Controller) reconcileNamespaces(subnet *kubeovnv1.Subnet) error {
}
if changed {
sub.Spec.Namespaces = reservedNamespaces
subnet, err = c.config.KubeOvnClient.KubeovnV1().Subnets().Update(context.Background(), sub, metav1.UpdateOptions{})
_, err = c.config.KubeOvnClient.KubeovnV1().Subnets().Update(context.Background(), sub, metav1.UpdateOptions{})
if err != nil {
klog.Errorf("failed to unbind namespace from subnet %s, %v", sub.Name, err)
return err
Expand Down

0 comments on commit e48c985

Please sign in to comment.