Skip to content

Commit

Permalink
Merge pull request #598 from OrangeBao/feature_auto_join
Browse files Browse the repository at this point in the history
Cherry-Pick: ignore errors of vc kubeconfig empty
  • Loading branch information
duanmengkk authored May 30, 2024
2 parents 2221bad + 450990f commit a3fef67
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,11 @@ func (r *NodeController) Reconcile(ctx context.Context, request reconcile.Reques
return reconcile.Result{}, nil
}

if len(virtualCluster.Spec.Kubeconfig) == 0 {
klog.Warning("virtualcluster.spec.kubeconfig is nil, wait virtualcluster control-plane ready.")
return reconcile.Result{}, nil
}

if err := r.DoNodeTask(ctx, virtualCluster); err != nil {
klog.Errorf("virtualcluster %s do node task failed: %v", virtualCluster.Name, err)
if err := r.UpdateVirtualClusterStatus(ctx, virtualCluster, v1alpha1.Pending, err.Error()); err != nil {
Expand Down

0 comments on commit a3fef67

Please sign in to comment.