From 73cc6e9d6e535cd1615c60b3212db0cf764ab453 Mon Sep 17 00:00:00 2001 From: duanmengkk Date: Wed, 15 Nov 2023 11:09:04 +0800 Subject: [PATCH] fix: fix ipfamily mismatch in root cluster and leaf cluster Signed-off-by: duanmengkk --- .../controllers/mcs/serviceimport_controller.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/clustertree/cluster-manager/controllers/mcs/serviceimport_controller.go b/pkg/clustertree/cluster-manager/controllers/mcs/serviceimport_controller.go index 3ab608565..9221b31b2 100644 --- a/pkg/clustertree/cluster-manager/controllers/mcs/serviceimport_controller.go +++ b/pkg/clustertree/cluster-manager/controllers/mcs/serviceimport_controller.go @@ -319,7 +319,8 @@ func (c *ServiceImportController) importServiceHandler(ctx context.Context, root err := c.checkServiceType(rootService) if err != nil { klog.Errorf("Cloud not create service in leaf cluster %s,Error: %v", c.LeafNodeName, err) - return err + // return nil will not requeue + return nil } clientService := c.generateService(rootService, serviceImport) err = c.createOrUpdateServiceInClient(ctx, clientService)