From 694086285c9df77e21ab2b1df64585459a57d3e4 Mon Sep 17 00:00:00 2001 From: OrangeBao Date: Tue, 14 Nov 2023 19:59:18 +0800 Subject: [PATCH] fix: sync ca from root cluster Signed-off-by: OrangeBao --- .../cluster-manager/controllers/pod/root_pod_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/clustertree/cluster-manager/controllers/pod/root_pod_controller.go b/pkg/clustertree/cluster-manager/controllers/pod/root_pod_controller.go index 5bf30e303..e5db5aa93 100644 --- a/pkg/clustertree/cluster-manager/controllers/pod/root_pod_controller.go +++ b/pkg/clustertree/cluster-manager/controllers/pod/root_pod_controller.go @@ -445,7 +445,7 @@ func (r *RootPodReconciler) createCAInLeafCluster(ctx context.Context, lr *leafU Name: utils.RooTCAConfigMapName, } - err = lr.Client.Get(ctx, rootCAConfigmapKey, ca) + err = r.Client.Get(ctx, rootCAConfigmapKey, ca) if err != nil { return nil, fmt.Errorf("could not find configmap %s in master cluster: %v", ca, err) }