Skip existing cluster check for now.

This commit is contained in:
pvito
2022-07-08 22:21:46 +02:00
parent fd217747d4
commit 6da54ab7df

View File

@@ -214,14 +214,14 @@ func (a *actuator) ReconcileClusterInFleetManager(ctx context.Context, namespace
a.logger.Error(err, "Failed to find Secret with kubeconfig for Fleet registration.") a.logger.Error(err, "Failed to find Secret with kubeconfig for Fleet registration.")
return err return err
} }
// skip this check for now
a.logger.Info("Checking if the fleet cluster already exists") // a.logger.Info("Checking if the fleet cluster already exists")
// Check whether we already have an existing cluster // Check whether we already have an existing cluster
_, err := a.getFleetManager(cluster).GetCluster(ctx, buildCrdName(cluster)) //_, err := a.getFleetManager(cluster).GetCluster(ctx, buildCrdName(cluster))
if err != nil { //if err != nil {
a.logger.Error(err, "Could not fetch fleet cluster") // a.logger.Error(err, "Could not fetch fleet cluster")
return err // return err
} //}
// We cannot find the cluster because of an unknown error // We cannot find the cluster because of an unknown error
if err != nil && !errors.IsNotFound(err) { if err != nil && !errors.IsNotFound(err) {