Skip to content

Commit

Permalink
Merge pull request #934 from kubeovn/namespace
Browse files Browse the repository at this point in the history
delete overlapped var subnet
  • Loading branch information
hongzhen-ma committed Jul 19, 2021
2 parents a118b4d + e449b8e commit 87f6691
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 @@ -828,7 +828,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 87f6691

Please sign in to comment.