Skip to content

Commit 8f4a7ae

Browse files
authored
Merge pull request kosmos-io#672 from qiuming520/release-0.4.0
Cherry-Pick: network-manager support clusterLinkOptions.enable
2 parents 9661645 + a5309ba commit 8f4a7ae

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/clusterlink/network-manager/network_manager.go

+6
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ func ExcludeInvalidItems(clusters []v1alpha1.Cluster, clusterNodes []v1alpha1.Cl
2828
klog.Infof("the cluster %s's ClusterLinkOptions is empty, will exclude.", c.Name)
2929
continue
3030
}
31+
32+
if !c.Spec.ClusterLinkOptions.Enable {
33+
klog.Infof("the cluster %s's ClusterLinkOptions is enable, will exclude.", c.Name)
34+
continue
35+
}
36+
3137
clustersMap[c.Name] = c
3238
cs = append(cs, c)
3339
}

0 commit comments

Comments
 (0)