Skip to content

Commit

Permalink
external: dont call telemetry if the cluster is external
Browse files Browse the repository at this point in the history
closes: rook#11470
Signed-off-by: parth-gr <[email protected]>
(cherry picked from commit a52e2f1)
  • Loading branch information
parth-gr committed Jul 10, 2023
1 parent bc1e980 commit b6b6a2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/operator/ceph/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}

Expand Down

0 comments on commit b6b6a2a

Please sign in to comment.