Add a warning to OSC cluster operator when no nodes are specified
This commit is contained in:
1 parent
ebe0687c6f
commit
83c718ccb7
1 file changed
+4
@@ -89,6 +89,10 @@ func (c *Cluster) Start() error {
|
||||
logger.Warningf("failed to init RBAC for OSDs. %+v", err)
|
||||
}
|
||||
|
||||
if c.Storage.UseAllNodes == false && len(c.Storage.Nodes) == 0 {
|
||||
logger.Warningf("useAllNodes is set to false and no nodes are specified, no OSD pods are going to be created")
|
||||
}
|
||||
|
||||
if c.Storage.UseAllNodes {
|
||||
// make a daemonset for all nodes in the cluster
|
||||
ds := c.makeDaemonSet(c.Storage.Selection, c.Storage.Config)
|
||||
|
||||
Reference in new issue
Block a user