From b6b6a2adb3e5f027464864ad5173c0141bf044cc Mon Sep 17 00:00:00 2001 From: parth-gr Date: Mon, 2 Jan 2023 20:34:17 +0530 Subject: [PATCH] external: dont call telemetry if the cluster is external closes: https://github.com/rook/rook/issues/11470 Signed-off-by: parth-gr (cherry picked from commit a52e2f17940661ebe7739155fba86c3ca0115971) --- pkg/operator/ceph/cluster/cluster.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/operator/ceph/cluster/cluster.go b/pkg/operator/ceph/cluster/cluster.go index 7ef700bd64f2..de5ee05e0744 100755 --- a/pkg/operator/ceph/cluster/cluster.go +++ b/pkg/operator/ceph/cluster/cluster.go @@ -219,6 +219,9 @@ func (c *ClusterController) initializeCluster(cluster *cluster) error { controller.UpdateCondition(c.OpManagerCtx, c.context, c.namespacedName, k8sutil.ObservedGenerationNotAvailable, cephv1.ConditionProgressing, v1.ConditionFalse, cephv1.ClusterProgressingReason, err.Error()) return errors.Wrap(err, "failed to configure local ceph cluster") } + + // Asynchronously report the telemetry to allow another reconcile to proceed if needed + go cluster.reportTelemetry() } // Populate ClusterInfo with the last value @@ -228,9 +231,6 @@ func (c *ClusterController) initializeCluster(cluster *cluster) error { // Start the monitoring if not already started c.configureCephMonitoring(cluster, cluster.ClusterInfo) - // Asynchronously report the telemetry to allow another reconcile to proceed if needed - go cluster.reportTelemetry() - return nil }