Skip to content

Commit

Permalink
mon: set cluster name to mon cluster
Browse files Browse the repository at this point in the history
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: #9159
Signed-off-by: parth-gr <paarora@redhat.com>
  • Loading branch information
parth-gr committed Nov 18, 2021
1 parent d62abfd commit aea2856
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/operator/ceph/cluster/cluster.go
Expand Up @@ -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")
Expand Down

0 comments on commit aea2856

Please sign in to comment.