Skip to content

Commit 18efa7a

Browse files
committed
delete unreachable code
Signed-off-by: sivchari <shibuuuu5@gmail.com>
1 parent bb366c4 commit 18efa7a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

bootstrap/kubeadm/internal/controllers/kubeadmconfig_controller.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,6 @@ func (r *KubeadmConfigReconciler) Reconcile(ctx context.Context, req ctrl.Reques
194194
// Lookup the cluster the config owner is associated with
195195
cluster, err := util.GetClusterByName(ctx, r.Client, configOwner.GetNamespace(), configOwner.ClusterName())
196196
if err != nil {
197-
if errors.Is(errors.Cause(err), util.ErrNoCluster) {
198-
log.Info(fmt.Sprintf("%s does not belong to a cluster yet, waiting until it's part of a cluster", configOwner.GetKind()))
199-
return ctrl.Result{}, nil
200-
}
201-
202197
if apierrors.IsNotFound(err) {
203198
log.Info("Cluster does not exist yet, waiting until it is created")
204199
return ctrl.Result{}, nil

0 commit comments

Comments
 (0)