rgw: raise errors when rgw daemon fails to be created
The generation of the rgw deployment spec was swallowing errors if any issues are raised such as the tls cert not being found as expected in some configurations. We need to fail the reconcile so the error will be logged and the admin can identify the issue. Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
This commit is contained in:
1 file changed
+1
-1
@@ -140,7 +140,7 @@ func (c *clusterConfig) startRGWPods(realmName, zoneGroupName, zoneName string)
|
||||
// Create deployment
|
||||
deployment, err := c.createDeployment(rgwConfig)
|
||||
if err != nil {
|
||||
return nil
|
||||
return errors.Wrap(err, "failed to create rgw deployment")
|
||||
}
|
||||
logger.Infof("object store %q deployment %q created", c.store.Name, deployment.Name)
|
||||
|
||||
|
||||
Reference in new issue
Block a user