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:
Travis Nielsen committed 2021-11-10 09:13:03 -07:00
1 parent f07c944aaa
commit 9ecd0cbc75
1 file changed
+1 -1
+1 -1
View File
@@ -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)