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.")
return err
}
a.logger.Info("Checking if the fleet cluster already exists")
// skip this check for now
// a.logger.Info("Checking if the fleet cluster already exists")
// Check whether we already have an existing cluster
_, err := a.getFleetManager(cluster).GetCluster(ctx, buildCrdName(cluster))
if err != nil {
a.logger.Error(err, "Could not fetch fleet cluster")
return err
}
//_, err := a.getFleetManager(cluster).GetCluster(ctx, buildCrdName(cluster))
//if err != nil {
// a.logger.Error(err, "Could not fetch fleet cluster")
// return err
//}
// We cannot find the cluster because of an unknown error
if err != nil && !errors.IsNotFound(err) {