Skip to content

Commit

Permalink
feat: network-manager support clusterLink enable
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyizhi1 committed Aug 9, 2024
1 parent eee9f43 commit 59f1820
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/clusterlink/network-manager/network_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ func ExcludeInvalidItems(clusters []v1alpha1.Cluster, clusterNodes []v1alpha1.Cl
klog.Infof("the cluster %s's ClusterLinkOptions is empty, will exclude.", c.Name)
continue
}
if !c.Spec.ClusterLinkOptions.Enable {
klog.Infof("the cluster %s's ClusterLinkOptions is enable, will exclude.", c.Name)
continue
}
clustersMap[c.Name] = c
cs = append(cs, c)
}
Expand Down

0 comments on commit 59f1820

Please sign in to comment.