Skip to content

Commit

Permalink
Merge pull request #232 from OrangeBao/feature_node
Browse files Browse the repository at this point in the history
fix: skip sync image pull secret
  • Loading branch information
kosmos-robot authored Nov 12, 2023
2 parents 88a3efe + 48c2534 commit 280ade1
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
})
Expand Down

0 comments on commit 280ade1

Please sign in to comment.