Skip to content

Commit

Permalink
Merge pull request kosmos-io#597 from OrangeBao/release-0.4.0-cert
Browse files Browse the repository at this point in the history
fix: ignore errors of vc kubeconfig empty
  • Loading branch information
duanmengkk authored May 30, 2024
2 parents 31f0e37 + cb032bd commit ab0d3ba
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 ab0d3ba

Please sign in to comment.