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 31079c802..30fa973a3 100644 --- a/pkg/clustertree/cluster-manager/controllers/pod/root_pod_controller.go +++ b/pkg/clustertree/cluster-manager/controllers/pod/root_pod_controller.go @@ -199,6 +199,7 @@ func (r *RootPodReconciler) Reconcile(ctx context.Context, request reconcile.Req if err != nil { if errors.IsNotFound(err) { if err := r.CreatePodInLeafCluster(ctx, lr, &rootpod); err != nil { + klog.Errorf("create pod inleaf error, err: %s", err) return reconcile.Result{RequeueAfter: RootPodRequeueTime}, nil } else { return reconcile.Result{}, nil @@ -689,8 +690,8 @@ func (r *RootPodReconciler) CreatePodInLeafCluster(ctx context.Context, lr *leaf } // try to create image pull secrets, ignore err - if err = r.createStorageInLeafCluster(ctx, lr, utils.GVR_SECRET, imagePullSecrets, basicPod, clusterNodeInfo); err != nil { - klog.Warning(err) + if errignore := r.createStorageInLeafCluster(ctx, lr, utils.GVR_SECRET, imagePullSecrets, basicPod, clusterNodeInfo); errignore != nil { + klog.Warning(errignore) } return true, nil })