Skip to content

Commit

Permalink
Merge pull request kosmos-io#671 from qiuming520/main
Browse files Browse the repository at this point in the history
feat: network-manager support clusterLinkOptions.enable
  • Loading branch information
duanmengkk authored Aug 11, 2024
2 parents ddec8f0 + 1fbfb48 commit 44a67a5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 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,12 @@ 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 44a67a5

Please sign in to comment.