From aea28565661e54cc98305ed85af53af05195b96e Mon Sep 17 00:00:00 2001 From: parth-gr Date: Thu, 18 Nov 2021 20:28:51 +0530 Subject: [PATCH] mon: set cluster name to mon cluster the mon cluster clusterInfo is intiated seprately, and misses out to set the cluster name and use default name as testing from AdminClusterInfo. Part-of: https://github.com/rook/rook/issues/9159 Signed-off-by: parth-gr --- pkg/operator/ceph/cluster/cluster.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/operator/ceph/cluster/cluster.go b/pkg/operator/ceph/cluster/cluster.go index 7ef5de4d3ecd..2177a7955161 100755 --- a/pkg/operator/ceph/cluster/cluster.go +++ b/pkg/operator/ceph/cluster/cluster.go @@ -90,6 +90,7 @@ func (c *cluster) reconcileCephDaemons(rookImage string, cephVersion cephver.Cep if err != nil { return errors.Wrap(err, "failed to populate config override config map") } + c.ClusterInfo.SetName(c.namespacedName.Name) // Start the mon pods controller.UpdateCondition(c.ClusterInfo.Context, c.context, c.namespacedName, cephv1.ConditionProgressing, v1.ConditionTrue, cephv1.ClusterProgressingReason, "Configuring Ceph Mons")