Skip to content

Commit

Permalink
Merge pull request kosmos-io#672 from qiuming520/release-0.4.0
Browse files Browse the repository at this point in the history
Cherry-Pick: network-manager support clusterLinkOptions.enable
  • Loading branch information
duanmengkk committed Aug 11, 2024
2 parents 9661645 + a5309ba commit 8f4a7ae
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 8f4a7ae

Please sign in to comment.