Skip to content

Commit

Permalink
Merge pull request kosmos-io#371 from GreatLazyMan/cnisupport
Browse files Browse the repository at this point in the history
title: fix cni compatibility issue, cluster with calico can't create …
  • Loading branch information
kosmos-robot authored Jan 17, 2024
2 parents d6754c9 + f46d180 commit 54d17a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ func (c *Controller) Reconcile(key utils.QueueKey) error {
}

klog.Infof("start reconcile cluster %s", cluster.Name)
if cluster.Spec.ClusterLinkOptions.CNI != utils.CNITypeCalico {
if cluster.Name == c.clusterName && cluster.Spec.ClusterLinkOptions.CNI != utils.CNITypeCalico {
klog.Infof("cluster %s cni type is %s skip reconcile", cluster.Name, cluster.Spec.ClusterLinkOptions.CNI)
return nil
}
Expand Down

0 comments on commit 54d17a6

Please sign in to comment.